cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Prav
Helper III
Helper III

Filter by Date in text format

Hello,

I'm trying to get a list between the 1st day and last day of last month from SP where Date_Added field is in text format (dd/mm/yyyy).

The statement below is not getting any records.

Please help.

 

 

Date_Added ge '@{formatDateTime(startOfMonth(getPastTime(1,'Month')),'dd/MM/yyyy')}' and Date_Added lt '@{formatDateTime(startOfMonth(utcNow()),'dd/MM/yyyy')}'

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User III
Super User III

Hi @Prav 

 

Change the date format to 'yyyy-MM-dd' format.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

5 REPLIES 5
abm
Super User III
Super User III

Hi @Prav 

 

Change the date format to 'yyyy-MM-dd' format.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

@abm 

I'm assuming on SP too.

abm
Super User III
Super User III

Hi @Prav 

 

Yes that's correct. Change the format and let me know the result.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

@Prav actually in my experience you don't also need to change it in SharePoint. All our dates in SharePoint are in UK dd/mm/yyyy format, and even if the date in the flow is formatted as yyyy-MM-dd it doesn't cause a problem in the SharePoint list.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

@RobElliott 

Worked when SP format was changed to yyyy-MM-dd. 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (50,887)