get the yesterday's date

449
2
Jump to solution
02-23-2022 12:54 AM
Fab_the_lab
New Contributor III

 

Hi, how can I get yesterday's date using the Arcade date functions?

Starting from Now () and then?

Thanks

 

0 Kudos
1 Solution

Accepted Solutions
KimGarbade
Occasional Contributor III

I think this will do it (example label Expression):

return text(DateAdd(Now(), -1, 'days'), 'MMM D, Y')

if you want the data and time just use:

return DateAdd(Now(), -1, 'days')

View solution in original post

0 Kudos
2 Replies
KimGarbade
Occasional Contributor III

I think this will do it (example label Expression):

return text(DateAdd(Now(), -1, 'days'), 'MMM D, Y')

if you want the data and time just use:

return DateAdd(Now(), -1, 'days')

0 Kudos
Fab_the_lab
New Contributor III

yeah, it works fine!

 

thanks a lot Kim

0 Kudos