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 / MIcrosoft flow how to ...
Power Automate
Answered

MIcrosoft flow how to get todays records

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

To get the todays records I am using the query

year(TimeStamp) eq 2020 and month(TimeStamp) eq 1 and day(TimeStamp) eq 28

I am getting all the records created on that day.

 

I have hardcoded it, but how to get it dynamically with out hardcoding...?

i.e. how to get year 

i.e. how to get current month number

i.e. how to get day number

 

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi

    You can use expressions:

     

    utcNow() will provide you curent timestamp. Its predefined format is yyyy-MM-ddTHH:mm:ss:fffffffK

     

    Once you get it, you can split by using character '-' as a separator

     

    Let's assume you store utcNow() result in a string variable called 'currentDateTime'.

    IN order to get current year, you can apply the following expression: split(variables('currentDateTime'),'-')[0]

    IN order to get current month, you can apply the following expression: split(variables('currentDateTime'),'-')[1]

    IN order to get current day of month, you can apply the following expression: split(variables('currentDateTime'),'-')[2]

     

    Hope this helps

     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 305

#3
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

Last 30 days Overall leaderboard