Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Ideas] Add a function to get the week number

$
0
0

There are date functions like Year(), Month(), Day(), DayOfWeek()... but no Week() to return the weeknumber. If you want to use the weeknumber in a aggregate you can't. To bad, because then you must use a advanced query and use (SQL Server):

datepart(week, <date>)

Funny thing is, when you look at the executed SQL of an aggregate where you use e.g. Year() as a formula of a custom column, Outsystems rewrites this to:

datepart(year, <date>)



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>