Change a date as text (STRING) to a date format (DATE) with Power Automate

Bildschirmfoto 2020 07 07 um 11.17.41
Contents

    If you receive a date as a STRING in a flow, the conversion process is not easy, but can be solved as follows:

    1. Create STRING variable (here as an example a contract start from an Excel file)
    2. Splitting of day, month and year: split(outputs(‘contract_start_STRING’), ‘.’)
    3. Create variable for the tag: first(outputs(‘Contract startSPLIT’))
    4. Create variable for the month: first(skip(outputs(‘Contract startSPLIT’), 1))
    5. Create variable for the year: first(skip(outputs(‘Contract startSPLIT’), 2))
    6. Merge into a date format: @{variables(‘month’)}/@{variables(‘day’)}/@{variables(‘year’)} 00:00:00Z
    Bildschirmfoto 2020 07 07 um 11.07.59
    Change a date as text (STRING) to a date format (DATE) with Power Automate 3

    Dieser Beitrag ist auch verfügbar auf: Deutsch (German)

    Updated on 1. April 2024
    Was this article helpful?

    Leave a Reply

    Your email address will not be published. Required fields are marked *