Skip to main content
Answer

How to calculate time difference?

  • June 2, 2022
  • 2 replies
  • 181 views

Hi how do i calculate the time difference, I’m currently creating a out of office zap and our office hours are from 09:00am to 17:00.

 

I’m currently using Woocommerce and i would like to send an email to the customer  if they order outside our operation hours and in that email i like to have a calculated field into how many hours left until we are back in office.

 

How would i go about it, i haven’t found a solution that works yet.

 

email template


We are currently out of the office, however we will respond to your order as soon as we return in the next (insert calculated field ) hours.

Best answer by Troy Tessalone

Hi @kingph 

Good question.

Might it be simpler to use this sort of messaging instead:

We are currently out of the office, however we will respond to your order as soon as we return during our normal business hours of 9:00am to 5:00pm.

 

Or you can try using this Zap step: Formatter > Date / Time > Compare Date

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • June 2, 2022

Hi @kingph 

Good question.

Might it be simpler to use this sort of messaging instead:

We are currently out of the office, however we will respond to your order as soon as we return during our normal business hours of 9:00am to 5:00pm.

 

Or you can try using this Zap step: Formatter > Date / Time > Compare Date

 


christina.d
Forum|alt.badge.img+9
  • Zapier Staff
  • June 6, 2022

Hey there, @kingph! I wanted to pop in and see if you were able to implement Troy’s suggestions? Keep us posted! 🤗