cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DSFlemming
Resolver I
Resolver I

ODATA date filter where SQL column is string format

Hi everyone

I'm using Get Rows v2 on a table where the 'StartDate' column is varchar and formatted as yyyy-MM-dd.

 

DSFlemming_0-1636090248667.png

 

I need to filter the upcomnig week's data and I expect I'll be working with someting like StartDate le adddays(utcNow(),7,'yyyy-MM-dd') but I'm not sure how to modify the table's 'StartDate' column in the ODATA query to make it workable.

 

Any advice greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @DSFlemming ,

 

You could use Filter action.

vxiaochenmsft_0-1636538608376.png

 

formatDateTime(item()?['StartDate'],'yyyy-MM-dd')
adddays(utcNow(),7,'yyyy-MM-dd'
 
Best Regards,
Wearsky

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @DSFlemming ,

 

You could use Filter action.

vxiaochenmsft_0-1636538608376.png

 

formatDateTime(item()?['StartDate'],'yyyy-MM-dd')
adddays(utcNow(),7,'yyyy-MM-dd'
 
Best Regards,
Wearsky
DSFlemming
Resolver I
Resolver I

That's great Wearsky. Just what I needed. Thanks for the tip.

Regards, Dale

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,440)