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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Convert date in TEXT format into DATE

(0) ShareShare
ReportReport
Posted on by 80

I have date  01/04/2020 in text datatype. Now, I want to convert and return to DATE datatype. Is there any solution?

I have the same question (0)
  • Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi Sujan Khadka ,

    Please use below:

    yourtextdate := '01/04/2020';

    Evaluate(DateTypeVariable,yourtxtdate);

  • Sujan Khadka Profile Picture
    80 on at

    Hi Nitin Verma,

    above answer returns 01/04/20. But my requirement is that I need 01/04/2020. Hope you understood

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    This is the different question, Initially you asked this "I have date  01/04/2020 in text datatype. Now, I want to convert and return to DATE datatype. Is there any solution?" answer of this I have already shared.

  • Sujan Khadka Profile Picture
    80 on at

    pastedimage1654772093890v1.png

    In Message(Format(abc)) suppose I have 01/04/2020 which is in text datatype. After evaluating with date type, my answer would be 01/04/20 which is a date datatype. But my task is to return 01/04/2020 with date datatype. 

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Please refer below link

    docs.microsoft.com/.../ui-enter-date-ranges

  • Suggested answer
    YUN ZHU Profile Picture
    101,846 Super User 2026 Season 1 on at

    Hi, Nitin is right. The current date format displayed on the page depends on the Region of your current system.

    So if you want to change '01/04/20' to '01/04/2020', you should change your region first. (About this our Partner cannot specify)

    For example,

    pastedimage1654826359388v3.png

    pastedimage1654826312155v2.png

    Hope this helps as well.

    Thanks.

    ZHU

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,454 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,806 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,538

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans