Issue with javascript date object -


i facing weird problem while initializes javascript date object,no matter initialize shows date 1 jan 1970 05:30;

this way try initialize

var d=new date(27-02-1989); 

alerting 'd' shows 1 jan 1970.....,also takes date passed database in format mm/dd/yyyy not in format want i.e dd/mm/yyyy

this problem has popped-up, working smooth couple of days ago,but today after opening project (after 2 days) issue irritating me

// transform european date in rfc compliant date (american) var date = '27-02-1989'.split('-').reverse().join('-');  // , works var d = new date( date ); 

proof:

proof


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -