can I set up default time?

290
1
05-16-2022 03:26 PM
KerryKang
Occasional Contributor III

Hello, 

Is there a way that I can set up default time? For example, I want to make 'from' date/time question always indicate current date/8:30 am. If I use today() it shows 12am as default time, and if I use now() it will pick up the current time. Thank you.

Kerry

0 Kudos
1 Reply
DeonLengton
Esri Contributor

Hi Kerry

Yes - what you can do is use the today() function - this gives you the current date at midday 12 o'clock

To get to 8:30am you subtract 12 and add 8 and a half hours:

today()+(-12+8.5)*60*60*1000

Hope that helps

0 Kudos