Date Format as MMYY

Hi Freinds,

I want date Format as MMYY,so Can any one suggest which function is used for this type of Format.

Thanks in Advance,

manasa

Hi,

You have to change your machine regional setting, same changes it will effect on AX also.

Regards,

Kiran

If you need it in code, use this:

date2str(dateToFormat,
    123,
    DateDay::None,
    DateSeparator::None,
    DateMonth::Digits2,
    DateSeparator::None,
    DateYear::Digits2)

Hi,

You can also modifiy the property of the field that displays your date (dateFormat, dateSeparator, dateYear, dateMonth,dateDay properties)

regards,

Thomas

i dont want date ,only month and year i want

In dateFormat, you choose “DMY”

in DateSeparator, choose “none none”

In dateDay property, “day not shown”

in dateYear, “2 digits”

in dateMonth “2 digits”

Then you field will display your date as MMYY

Hi,

Thanks For The Reply.

Hi Manasa,

You had quite a few varied response here. If you mark the answer that helped you, it will be of immense help to others who have similar query.