Hi,
I want to change the format of date from mm/dd/yyyy to dd/mm/yyyy .
Example:
Date Field: MM/DD/YYYY
DateField= any2Date(date2Str(DateField,321, DateDay::Digits2, DateSeparator::Slash,
DateMonth::Digits2,DateSeparator::Slash, DateYear::Digits4, DateFlags::None));
As I mentioned code not working what am I missing?
Thanks
Where do you want to change that? In the whole GUI, in a particular report field, in an exported file…?
What exactly do you mean by “code not working”?
What is your version of AX (or is it F&O)?
Note that date fields are not stored as strings, therefore they don’t have a specific string format. A format like MM/DD/YYYY applies when you convert a date field to a string.