top of page
9d657493-a904-48e4-b46b-e08acb544ddf.png

POSTS

Power Query: Convert Date Format (Universal Format)

Updated: May 28

Function: Converts different date formats into YYYY-MM-DD or any other format that you define. You define it in code, it executes!


Spreadsheet interface showing data conversion functions, with highlighted sections: "Invoke Custom Function" and "ConvertDate" table displaying dates.
Date column with mixed date formats

Usage:

 = ConvertToISODate("03/13/2025") → Returns: "2025-03-13"

Power Query code to use and reuse:

let
  ConvertToISODate = (inputDate as any) as nullable text =>
    let
      ConvertedDate = try Date.ToText(Date.From(inputDate), "yyyy-MM-dd") otherwise null
    in
      ConvertedDate

Data table with columns: Data, Date, and fx_ConvertDate. Entries show formatted dates. Green and grey highlights surrounding columns.
Perfectly cleaned date format in new column


Need a code and instructions? Free of charge =)




Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
Official Logo of the Webpage

Transform your data with our data analytics services! From Excel to Power BI with Power Query in the background, drive your business forward!

  • Linkedin
  • Xing
  • RSS
  • 4844455

Contact Us

Address:
83022 Rosenheim, Bavaria

Join Our Newsletter

Stay updated with tips & tutorials!

© 2025 By Excelized. | SITE DESIGNED BY RS-TECH

bottom of page