Why an i getting Invalid Date on client script

Chetan Kumar
Tera Contributor

Its a OnChange Script 

var start = new Date(g_form.getValue('from_date'));
alert(start);

Type is "Date " for the variable
Error i'm getting : Invalid Date

Why am i getting this error, please help 

5 REPLIES 5

asifnoor
Kilo Patron

Hi,

Refer to this link. This should help you.

https://community.servicenow.com/community?id=community_article&sys_id=a26dac761b4e8010a59033f2cd4bc...

Mark the comment as a correct answer and helpful if this has helped to solve the problem.