cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

Re: Filter by Date in text format

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 blog

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Filter by Date in text format

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 blog

View solution in original post

Highlighted
Helper III
Helper III

Re: Filter by Date in text format

@abm 

I'm assuming on SP too.

Highlighted
Super User III
Super User III

Re: Filter by Date in text format

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 blog
Highlighted
Super User III
Super User III

Re: Filter by Date in text format

@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.

Highlighted
Helper III
Helper III

Re: Filter by Date in text format

@RobElliott 

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,820)