Page 1 of 1

How can I set null date to a datepicker?

Posted: Sun Nov 30, 2014 10:10 am
by John Polyzos

Hi everyone!
I have a datepicker component which is filled with values from database but in some cases the value that comes from the DB is null. When a null value is retrieved the datepicker set its value to '1/1/1970'. How can I clear this and sets a null value to the datepicker?

Thank you in advance!


How can I set null date to a datepicker?

Posted: Mon Dec 01, 2014 1:25 am
by Yurii Orishchuk

Hi John,

You can not set "null" to date picker cause of "null" is not a date.

But you can manage it in other way like you need.

For example: you can set current date for this component or hide this component at all and show some label with needed attention text.

All of these logic could be performed with "JS" on date link in service mapping.

Regards.