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

Power Automate Video Tutorials

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

Power Automate Video Tutorials

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

Power Automate Video Tutorials
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

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

Top Solution Authors
Top Kudoed Authors
Users online (6,634)