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 Automate
Answered

date and time

(0) ShareShare
ReportReport
Posted on by 71

Hello

 

I created a flow which takes rows with date and time from excel sheet and sends mail to user. Unfortunately i get message like this:

2021-03-10T00:00:00.000Z at 1899-12-30T09:30:00.000Z

but i want this:

2021-03-10 at 09:30:00

 

Does anyone knows how to do it?

Thanks

Categories:
  • Rahber Profile Picture
    1,935 on at

    you can use

     

    formatDateTime(yourdatevariable,'yyyy-MM-dd') and 
    formatDateTime(yourtimevariable,'HH:mm:ss')
     
    Make sure to update the variable for your date and time in the above
     
    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,
    Rahber
     
    To acehive your need
     
     
  • Tofifi Profile Picture
    71 on at

    But how and where add this? I'm still learning building flows so that would mean much to me.

  • Tofifi Profile Picture
    71 on at

    Hi Rahber

     

    I figured out how and where add it, but i have problem and message: 

    Tofifi_0-1611594036753.png

    Do you know how to fix it?

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Tofifi Pls share your flow screen.

    For date serial number (in Compose action i am passing excel date). Pls use following expression-

    addDays('1899-12-30',int(outputs('Compose')),'dd-MM-yyyy')

    Did my reply help? Please give it a thumbs up.
    Did I answer your question? Please mark my post as a solution!

    Regards,
    Hardesh

  • Tofifi Profile Picture
    71 on at

    Hi @Hardesh15

     

    Fortunately i figured out how to fix the date issue but thank you for your reply. Now i have the same problem with time:

    Tofifi_0-1611598056213.png

     

    time i have in different column.

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Tofifi Pls share your flow screen not running instance. i want to check your expression for date and time.

    Did my reply help? Please give it a thumbs up.
    Did I answer your question? Please mark my post as a solution!

    Regards,
    Hardesh

  • Tofifi Profile Picture
    71 on at

    @Hardesh15 
    That's how it looks:

    Tofifi_0-1611653488971.png

     

  • Tofifi Profile Picture
    71 on at

    @Hardesh15 

    Sorry i forgot to put formula, here it is:

    Tofifi_0-1611733752695.png

    Tofifi_1-1611733778895.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Tofifi pls check if your date column has null value. If it is null value then use condition isblank(column name) in format date time expression.

    Thanks

    Hardesh

  • Tofifi Profile Picture
    71 on at

    @Hardesh15  

    No, it doesn't have null value:

    Tofifi_0-1611777338951.png

     

    I don't have problem with date anymore but with time.

    Tofifi_1-1611777438123.png

     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard