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

Notifications

Announcements

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,204 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard