How to validate date using javascript -


i want convert vbscript javascript, checks whether date valid or not. in vbscript have used isdate builtin function not in having javascript. date format (mmm d,yyyy) ex : may 14,2015 vbscript :

sub checkdateclient(sender, args)      if isdate(args.value)         args.isvalid = true     else         args.isvalid = false     end if end sub 

please me in converting or other script can perform desitred requirement

you can try using isdate() underscore js library.

link source: http://underscorejs.org/#isdate

something this:

var is_date = _.isdate(mydate); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -