12
Views
5
Comments
Solved
Set maxdate for datepicker using year (integer)
Question
Application Type
Reactive

Hi guys, I want to ask, how can I set maxdate by read from parameter that contain integer only? because the parameter is YEAR, hope someone can help me, sorry for a newbie question cause I'm new with outsystems


Rank: #88
Solution

Hi ,

you can use built in function dateTime- 

NewDate(y,m,d)

Like - NewDate(2021,Month(Currdate()),Day(Currdate()))

provie year variable in place of 2021


Hope this will help you.

Regrads

Rahul

Rank: #3520

Hi it works! but may I know how can I set for month using december, and day use until 31? Do i need to set like this " month(#parameter_year - 12 - 31#), Day (#parameter_year - 12 - 31#) ?

Hi Syakir, 

Good day!

I think it's not possible, may I kindly suggest that you use the the 1st day of the year instead (i.e. 01/01/2022).

Hope this helps,

Thank you and kind regards,

Chris

Rank: #3520

Hi thank you for ur help but just got the solution that related with my situation from Mr @Rahul Sahu 

Rank: #88