Skip to main content
Solved

Date Conversion MM DD, YYYY to YYYY-MM-DD

  • August 1, 2019
  • 2 replies
  • 207 views

Forum|alt.badge.img

Hello, what is the easiest way to convert these dates ?

 

June 28, 2019 to 2019-06-28

 

May 31, 2019 to 2019-05-31

 

April 26, 2019 to 2019-04-26

 

etc.

Best answer by warrendev

@kat, you can use the DateTimeConverter to convert the date to your desired output.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

warrendev
Enthusiast
Forum|alt.badge.img+26
  • Enthusiast
  • 121 replies
  • Best Answer
  • August 1, 2019

@kat, you can use the DateTimeConverter to convert the date to your desired output.


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 606 replies
  • August 1, 2019

@kat, you can use the DateTimeConverter to convert the date to your desired output.

Building on @warrengis answer, there are two very helpful resources for this.

  1. The Format String Flags an Examples section in the Date Time Functions documentation as it explains all of the flags and provides examples for each.
  2. The Quick Reference (a simplified version of the format string flags and examples) and Date Preview that are built into the DateTimeConverter - these will help you build date format expressions: