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

POSTS

Power Query: Pretvaranje formata datuma (univerzalni format)

Writer: MirVel
MirVel
Dec 1, 2025
1 min read

Updated: Jul 13

Funkcija: Konvertuje različite formate datuma u GGGG-MM-DD ili bilo koji drugi format koji definirate. Definirate ga u kodu, on se izvršava!


Interfejs proračunske tablice koji prikazuje funkcije za konverziju podataka, s istaknutim odjeljcima: "Pozovi prilagođenu funkciju" i tabela "ConvertDate" koja prikazuje datume.
Date column with mixed date formats

Upotreba:

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

Power Query kod za korištenje i ponovnu upotrebu:

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

Tabela podataka sa kolonama: Podaci, Datum i fx_ConvertDate. Unosi prikazuju formatirane datume. Zelena i siva boja označavaju okolne kolone.
Perfectly cleaned date format in new column


Trebate kod i upute? Besplatno =)





If you found this guide useful, explore the related posts below or download a free Power Query cheat sheet by subscribing to the Excelized newsletter.

Subscribe to Excelized Newsletter

👉 Ready to stop cleaning data manually? Book a live 1:1 Power Query Beginner Bootcamp and master it hands-on with me.

 
 
 
Excelized logo

Turn Messy Data into Clear Dashboards and Better Decisions.

Explore

Contact

Address:
83022 Rosenheim, Germany

Join Our Newsletter

Get a free Power Query cheat sheet by subscribing!

© Excelized. All rights reserved.

bottom of page