Thread
:
Validate Date field MM/DD/YYYY with legit date
View Single Post
11-02-2012, 10:49 PM
PM User
|
#
12
felgall
Master Coder
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
Quote:
Originally Posted by
Philip M
var nd = new Date();
nd.setFullYear(yr,mm,dd); // format YYYY,MM(0-11),DD
Surely that can be shortened to:
Code:
var nd = new Date(yr,mm,dd);
__________________
Stephen
Learn Modern JavaScript -
http://javascriptexample.net/
Helping others to solve their computer problem at
http://www.felgall.com/
felgall
View Public Profile
Visit felgall's homepage!
Find More Posts by felgall