Skip to main content
New Idea

Hour operator for logical expressions

Related products:Freshservice
  • April 1, 2025
  • 1 reply
  • 24 views

Medic1334
Top Contributor ⭐
Forum|alt.badge.img+9

Recently I was asked to setup a block to the ability to submit changes in the morning hours before out change meetings. In the automator I get the current datetime for our timezone (example below):

2025-04-01T10:56:42.624202-05:00

On a separate logical expression, I need to get the current hour so that a following condition can be used with a “less than” argument but it doesnt look like there is an hour operator (there are Day, Month, Year operators).

For the meantime, I used the below to parse out the hour value at but it returns a string value instead of a number, which means I need to do a “contains” and specify every possible hour:

{{E6.result|split: "T"|last|truncate: 2,""}} 

While what I have works, being able to return the hour value as a number would make configuration much less intensive.

1 reply

Medic1334
Top Contributor ⭐
Forum|alt.badge.img+9
  • Author
  • Top Contributor ⭐
  • April 2, 2025

@Amrit Mishra sorry for the direct ping, I forgot to finish my topic name before submitting. Can you append logical expressions on the end so it reads “Hour operator for logical expressions” please?