Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can someone illustrate the difference between the two?
Date#() is used how to interpret the data. For example
date#('2013_24_10','YYYY_DD_MM') tells that the first four digits are year, the digits between two '_'s are Date, and the last two are Month.
Date() is used to tell how to show the data. For example
date(today(),'YYYY_DD_MM') returns 2013_24_10
date(today(),'MM/DD/YY') returns 10/24/13
Combination of both:
date(date#('2013_24_10','YYYY_DD_MM'),'MM/DD/YYYY') returns 10/24/2013
Regards,
Michael
Date#() is used how to interpret the data. For example
date#('2013_24_10','YYYY_DD_MM') tells that the first four digits are year, the digits between two '_'s are Date, and the last two are Month.
Date() is used to tell how to show the data. For example
date(today(),'YYYY_DD_MM') returns 2013_24_10
date(today(),'MM/DD/YY') returns 10/24/13
Combination of both:
date(date#('2013_24_10','YYYY_DD_MM'),'MM/DD/YYYY') returns 10/24/2013
Regards,
Michael
Very helpful. Thanks!
I have an issue with date() and date#(),i have field called ActionDate which is in this format 'DD/MM/YYYY'
and I have a field in the script that calculates DDMM like this
date#(date(CalendarDate,'DDMM'),'DDMM') Do you think there is a redundancy in this expression? thank you
You can read this useful document.
Thank you for your help Manish.
thank you it was a nice Demo
use this document which is very helpful