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 / The provided text valu...
Power Automate
Answered

The provided text value can't be converted into a valid datetime.

(0) ShareShare
ReportReport
Posted on by 38

Hi Everyone,

 

I have string of date that I want to convert to date time. 

The string date is in "Wed Aug 31".

So, when I try to use convert text to datetime activity, it give me an error.

Anyone know how to solve this? or the format it cannot be like this.

 

Here the screenshot of my test activity.

 

 

mfikri1609_0-1660100658356.png

 

Thanks.

I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    I dont think its possible in this format. There is one custom format option also in the text to date conversion, but in that too the format should be ddmmyyyy or similar patterns or hhmmss or similar options. So, I dont think its possible. 

     

    Sundeep_Malik_0-1660113341350.png

     

    Only ddmmyyyy and similar patterns are only available there. If you can do some manipulations to convert that day into the above formats, then only its possible. 

     

  • mfikri1609 Profile Picture
    38 on at

    Hi @Sundeep_Malik ,

    Thank you for your respond. 

    "Mon Sep 5 00:00:00 UTC+0800 2022" I have this format and then I use parse activity which using Regex ".+(?=\s\d{2}:)" and it give me Mon Sep 5.

    I think because it do not give the year as output and as I work with the data, it give error.

     

    Do you have any suggestion I can extract only date? because the timestamp data itself when I want to process already in that format.

  • Sundeep_Malik Profile Picture
    6,501 on at

    I am not sure in PAD, how to do it. But, what you can try is using an API. 

    I found this code: https://stackoverflow.com/questions/11097256/how-to-convert-mon-jun-18-000000-ist-2012-to-18-06-2012 

    You can make an API with the above code.

    You can just extract the date and send it in Post Method and then use Get method to receive the converted date. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 261 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 185

#3
Haque Profile Picture

Haque 168

Last 30 days Overall leaderboard