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 / How to Convert Culture...
Power Automate
Answered

How to Convert CultureInfo String Datetime to Datetime

(0) ShareShare
ReportReport
Posted on by 20

Hello all!

 

I have a string "8 Kasım 2024 Cuma 10:21:47" Turkish format string in PAD. I want to have a datetime format of this string. Please help me. I appriciate that.

Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    Hi @betuld 

     

    Did you get a chance to look at Convert text to datetime action available in PAD

     

    Srini007_0-1715607253805.png

     

     

    Check below link for documentation

     

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/text#converttexttodatetime

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Cheers,

    Srini

     

  • betuld Profile Picture
    20 on at

    Yes, it doesn't work. because of language i think . I select Custom and typed d MMMM yyyy dddd HH:mm:ss

     

  • Verified answer
    betuld Profile Picture
    20 on at

    I used powershell prompt. And it worked!
    "# Gelen string değer
    $stringValue = "%AttributeValue%"

    # String değeri DateTime nesnesine dönüştürme
    $dateTime = [DateTime]::ParseExact($stringValue, "d MMMM yyyy dddd HH:mm:ss", [System.Globalization.CultureInfo]::GetCultureInfo("tr-TR"))

    # Yeni formata göre tarih ve saat değerini string olarak biçimlendirme
    $newFormattedString = $dateTime.ToString("dd.MM.yyyy HH:mm:ss", [System.Globalization.CultureInfo]::GetCultureInfo("tr-TR"))

    Write-Output $newFormattedString"

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard