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 / 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,463 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard