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 :
Power Platform Community / Forums / Power Automate / Parse text to datetime...
Power Automate
Answered

Parse text to datetime without leading zeroes

(0) ShareShare
ReportReport
Posted on by 56
I have date as a string like '1.1.2023' which I need to convert to a datetime.
I use 'convert text to datetime' with custom format 'dd.MM.yyyy'
But this chokes and errors anytime day or month is a single digit value like '1.1.2023'.
Works fine when the date and month happen to be over 10 like '10.10.2023' or have leading zeroes like '01.01.2023'.
Manipulating the text like that is a pain in the ass, is there some way I can make converter understand this format?
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,545 Super User 2026 Season 1 on at
    Change it to d.M.yyyy
    That should work in both cases (with leading 0 and with out).
  • powerautomator3 Profile Picture
    56 on at
    Nice. They could have mentioned that in the docs..

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!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 386

#2
Valantis Profile Picture

Valantis 342

#3
Haque Profile Picture

Haque 336

Last 30 days Overall leaderboard