Hi there,
I need to use the date string in format "YMMd", for example, "20220329" for today.
I am using the datetext function: datetext(today(), "YMMd"), if today() function return "03/29/2022", then the datetext(today(), "YMMd") will return "20200328". what's the issue there? why I cant get "20220329"? what's the good way to archive it?
Thanks!
Lin
Discussion posts and replies are publicly visible
Hi, I am using the same code which you are using and i am getting expected result, please see below. I would suggest you check your environment time zone.
if you run just today(), you got the same date?
yes, i am getting the same result .
thanks, maybe the timezone setting is not correct, but I am ok now with using text() function.