Skip to main content
Answer

GI Filters for Saturday/Sunday

  • March 27, 2025
  • 2 replies
  • 79 views

Forum|alt.badge.img

I am creating a GI that gives me service orders that were created on Saturday and Sunday or after 4pm on weekdays. What do I use for filters??? I tried @weekstart+5 and @ week start+6 to get Saturday and Sunday but it doesn’t pull anything.

I don’t even know where to start for the after 4pm on weekdays.

Help!?

Best answer by meganfriesen37

Try using the Day of Week and Hour functions on the FSServiceOrder.CreatedDateTime field as shown below:

 

I think you might need to play around a bit with the hour value, since my system is in EST (and I’m in MST), so I’d expect created hour should be 13 based on what I see in the Audit history, but it’s showing as 20, so I’m wondering if there’s some time zone conversion going on.  Using the Day of Week function Sunday is day “1” and Saturday is day “7”

 

2 replies

meganfriesen37
Captain II
Forum|alt.badge.img+12
  • Captain II
  • Answer
  • March 27, 2025

Try using the Day of Week and Hour functions on the FSServiceOrder.CreatedDateTime field as shown below:

 

I think you might need to play around a bit with the hour value, since my system is in EST (and I’m in MST), so I’d expect created hour should be 13 based on what I see in the Audit history, but it’s showing as 20, so I’m wondering if there’s some time zone conversion going on.  Using the Day of Week function Sunday is day “1” and Saturday is day “7”

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • April 2, 2025

Thank you! This helped!