Help

Calculate dates

Topic Labels: Dates & Timezones Formulas
Solved
Jump to Solution
629 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Lisa_Wetherby
5 - Automation Enthusiast
5 - Automation Enthusiast

I know this is super simple, but I am new to formulas. Here's my problem:

I have volunteers signing up for a rotation and I'm trying to make a view that will capture their hotel needs, which are generally: Check In one day BEFORE their First Day BOG and Check Out one day AFTER their Last Day BOG (BOG = Boots on the Ground).

This is the formula I am using to get their Check In date: DATEADD({First Day BOG},-1,'days')

It is not calculating correctly.

This is the formula I am using to get their Check Out date: DATEADD({Last Day BOG},1,'days')

Also not calculating correctly.

Help & TIA

1 Solution

Accepted Solutions
bruceconsulting
7 - App Architect
7 - App Architect

Hi Lisa,

Here's the formulas you want:  

DATETIME_FORMAT(DATEADD({First Day BOG}, -1,'day'),'M/D/YYYY')
DATETIME_FORMAT(DATEADD({Last Day BOG}, 1,'day'),'M/D/YYYY')

If you want to talk about this further or if you ever need additional help, please schedule some time with me.  Here's my Calendly link: https://calendly.com/d/z2y-gh2-5rm/30-minute-help-meeting
 
Jody

See Solution in Thread

2 Replies 2
bruceconsulting
7 - App Architect
7 - App Architect

Hi Lisa,

Here's the formulas you want:  

DATETIME_FORMAT(DATEADD({First Day BOG}, -1,'day'),'M/D/YYYY')
DATETIME_FORMAT(DATEADD({Last Day BOG}, 1,'day'),'M/D/YYYY')

If you want to talk about this further or if you ever need additional help, please schedule some time with me.  Here's my Calendly link: https://calendly.com/d/z2y-gh2-5rm/30-minute-help-meeting
 
Jody
Lisa_Wetherby
5 - Automation Enthusiast
5 - Automation Enthusiast

It worked! Not sure why I needed the DATETIME_FORMAT - it was actually formatted fine - but I'm happy with the results. Thank you!