Select to view content in your preferred language

Auto compute date of departure based on no. of nights and date of arrival

288
4
Jump to solution
08-20-2024 08:48 PM
AngelNicoleAlvaro1
Occasional Contributor

Hi! As the title says, how do you automatically compute for the date of departure if user has input for the no. of nights stayed and his date of arrival? Thank you.

0 Kudos
1 Solution

Accepted Solutions
JenniferAcunto
Esri Regular Contributor
date(decimal-date-time(${arrival_field}) +  ${days_stayed})
- Jen

View solution in original post

4 Replies
JenniferAcunto
Esri Regular Contributor
date(decimal-date-time(${arrival_field}) +  ${days_stayed})
- Jen
AngelNicoleAlvaro1
Occasional Contributor

Thanks, Jennifer! This worked!

0 Kudos
DougBrowning
MVP Esteemed Contributor

I do it like this   date(decimal-date-time(now()) -  7)  to test for 7 days out.

So thinking something like

date(decimal-date-time(${CheckInDate}) +  ${NumberOfNights})

AngelNicoleAlvaro1
Occasional Contributor

Thanks, Doug! Much appreciated.