Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a date format as "Apr 2 2011 12:00 AM", how can I convert this into "YYYYMMDD"? The time is always12:00 AM.
Thanks.
if you have different format, use the alt function
date(
alt(
date#([Fiscal Week Ending Date], 'MMM DD YYYY hh:mmTT'),
date#([Fiscal Week Ending Date], 'MMM D YYYY hh:mmTT')
)
, 'YYYYMMDD' )
Hi,
Convert your date field like
Date(DateField,'YYYYMMDD')
Thanks & Regards
This will not work. It has something to do with timestamp.
Hi,
You mean to say when date change as YYYYMMDD the time should always 12:00 AM or also check your current date field it is date format or not.
Thanks & Regards
I want to change my current date field in YYYYMMDD format. With date function it will not work.
Hi,
Ok write some thing like this
Date(DateField,'YYYYMMDD h:mm:ss TT')
Hope this helps
Thanks & Regards
You can go into Setting -> Document Properties and select the "Number" tab. From there you can set the field to be in the date format you desire and it will be change for the entire app.
Try
Date(date#(YourDateField, 'MMM D YYYY hh:mm') , 'YYYYMMDD hh:mm')
Hi,
If you only want to use the date you can delete the time (hh:mm:ss) by using the floor() function: DATE(FLOOR(datefield), 'YYYYMMDD').
To everyone, I tried all the options and attaching a sample excel.