I am trying to display date on my report (pdf) as "yyyy/MM/dd" in CRM dyanmics.
I tried the following:
=Format(Fields!From.Value, "yyyy/MM/dd" ) -- returns literal yyyy/MM/dd
= DateSerial(DatePart("yyyy", Fields!From.Value) + 0, DatePart("m", Fields!From.Value) + 0, DatePart("d", Fields!From.Value) + 0) -- returns 5/4/2016 12:00:00 AM
= CDate( Year(Fields!From.Value) + "/" + Month(Fields!From.Value) + "/" + Day(Fields!From.Value) ) -- returns Err: converstion from 'Double' to 'Date' requires caling the 'Date.FromOADate' method
I tried setting the format at the field level, in custom formatting, but it always comes back as "mm/dd/yyyy"
*This post is locked for comments
I have the same question (0)