Best answer

How to calculate time difference?


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.

icon

Best answer by Troy Tessalone 2 June 2022, 17:28

View original

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

Userlevel 7
Badge +14

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

 

Userlevel 7
Badge +9

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