web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Date format for Country

(0) ShareShare
ReportReport
Posted on by 4,131

Hi,

Is there date format/country mapping values in D365FO?

For example, US - MM/DD/YYYY, we need to develop a feature that if the user choose country (e.g. US), will change the date format setup for the user.

Thanks,

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Yuji,

    You can configure that in the user option form.

    Why do you need to develop something?

    Best regards,

    Ludwig

  • Suggested answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Yuji,

    The standard control work on the basis of format defined on user options form see below:

    When set to "en-IN",

    pastedimage1582527898435v1.png

    pastedimage1582527930836v2.png

    When set to en-us then see below:

    pastedimage1582527959020v3.png

    So define the appropriate locale in user options and you should be all set. 

  • qianwang Profile Picture
    7,168 on at

    Hi Yuji,

    Also, if you want to display the date format by yourself, you can use date2str method to convert it in any format.

    date2Str

       (currentDate,

           321,//Basically 1 = days, 2 = months and 3 = years ,like if you want to show year-month-days then use 321,If you want to use Month-days-year then use 213

           DateDay::Digits2,

           DateSeparator::Hyphen, // separator1

           DateMonth::Digits2,

           DateSeparator::Hyphen, // separator2

           DateYear::Digits4

       );

    Refer to the DOC:

    docs.microsoft.com/.../xpp-conversion-run-time-functions

    Regards,

    QianQW

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans