17
Views
4
Comments
Richwidgets Input_Calendar format

Hi, I want to ask that how can I format Input Calender cause  when I click to choose date by default value is 1/1/1900. I want when I click It can be go to current Year.


Anyone can show this. 

Thanks for reading and helping me!!

Rank: #89

Hi Dat Bui,

Which variable you add with input you set as nulldate() may be it is showing default date,

set currdate as variable or provide Input_Calendar property inital date.


regards

Rahul Sahu

Rank: #205

Dat Bui wrote:

Hi, I want to ask that how can I format Input Calender cause  when I click to choose date by default value is 1/1/1900. I want when I click It can be go to current Year.


Anyone can show this. 

Thanks for reading and helping me!!


Hi Dat, check the oml and this sample 


Hope I could help you

Best regards

Carlos Lessa

InputCalendar.oml

mvp_badge
MVP
Rank: #90

Hi Dat Bui,

I just want to mention one more solution to achieve the mentioned requirement.

Steps:

1) Create a Local Variable of Date data type (i.e. InputDateVar)

2) Map the Local variable (i.e. InputDateVar) to the Date Input control/widget 

3) Define the Date input widget Null Value property value with #1900-01-01# (this is the trick)

Refer the below pic for more clarity :)

Hope this helps you!

Regards,

Benjith Sam

mvp_badge
MVP
Rank: #74

Might I just add to Benjith's post. 

Instead of defining the Date Input Widget's Null Value Property with #1900-01-01# it is better to assign it with NullDate(). Works the same :).

Regards,

Nordin