Forum Discussion
Change date format in query
- 5 years ago
Hi, Anonymous
You may modify your query as below to see if it helps.
let start = Date.ToText( Date.EndOfMonth(Date.AddMonths(DateTime.Date(DateTime.LocalNow()),-1 )),"yyyy-mm-dd" ), end = Date.ToText( Date.StartOfMonth(Date.AddMonths(DateTime.Date(DateTime.LocalNow()),-1 )),"yyyy-mm-dd"), ... in ...Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thanks for helping me with the date time issue, it worekd as intended when changing mm to MM. However, i now get the following error in the querry:
This has probably something to do with the date variables but i have no idea why it is not working
- v-alq-msft5 years agoCommunity Support
Hi, Anonymous
Based on the error message, it means Web.Contents only need 1 or 2 parameters while it provides 6 arguments. You need to use text connection symbols to connect text to form a url instead of comma separated.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.