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

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
Super User

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

Prav Helper III
Helper III

Re: Filter by Date in text format

@abm 

I'm assuming on SP too.

Super User
Super User

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
Super User
Super User

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.

Prav 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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,262)