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
Post a Comment