Forum Discussion

KevinJan's avatar
KevinJan
Regular Visitor
4 years ago
Solved

Determine Shift based on TimeStamp

Hi All,   I need help to determine the shift based on the time stamp of my data set.  Day Shift = 6:00:00 AM to 6:00:00 PM Night Shift = 6:00:00 PM to 6:00:00 AM (the next day)   Any help...
  • mwegener's avatar
    4 years ago

    Hi KevinJan ,

    maybe this will help.

    if DateTime.Time([time]) > Time.From("6:00:00") and DateTime.Time([time]) < Time.From("18:00:00") then "Day Shift" else "Night Shift"