How do i extract month from the in built date picker and filter data according to months
You can use the Month() function in aggregate filter as shown below. It will filter according to month. As you can see in below filter DateTime is returned from data picker and we extracting month to filter aggregate.
Regards
Krishnanand Pathak
Hi Suraksha ,
As per my assumption for your datepicker you have created an action and bind it on OnChange event, so if you are refreshing your aggregate inside the same OnChange event,
Pass the input parameter i.e. StartDate in aggregate and inside where clause use Month() built in function it'll give you month of date you have passed,
if you are using refresh aggregate in other action keep selected date in local variable.
So, you where clause will be look like Month(YourEntity.DateAttribute) = Month(StartDate)
You can find complete reference of date time here
I hope it'll help you.
Thanks
Deep
Hello Suraksha Dnyaneshwar Ware
To extract the month from the in-built Date Picker in OutSystems and filter data according to months,
steps: