Skip to main content
Question

Duration of 48 hours starting on a workday

  • June 13, 2024
  • 0 replies
  • 110 views

Forum|alt.badge.img+5

Greetings. I am trying to create a Due Date/Time field that would show 48 hours from the Date Created for a record, but need to take into account work hours.

Right now my formula is [Date Created]+Hours(48), which shows the date/time 48 hours later, but if the record is created Saturday morning at 10am, for example, I would need the countdown to start as of Monday morning 8am. I thought about using ToWorkDate, then WorkDateAdd, but I believe I would lose the time component, so am not sure that will work for the date/time field type.

Any suggestions?

This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • June 14, 2024

not tested but try this

ToTimeStamp(     // this function returns a date / time result when given a date and a Time of day

ToWeekDayN(ToDate([Date Created]),  // this function will bump the date ahead if it falls on a weekend. 

ToTimeOfDay([DateCreated]) // just the time of date portion of a date/time field

+ Hours(48)