Using date.js's Date.parse what's the simplest way to determine whether a user input string, e.g. 'oct 31 12am' vs just 'oct 31', includes a time value, i.e. whether a time was explicitly specified or not.
date.js simple way to determine if time specified in parse
289 views Asked by tribalvibes At
1
use regular expression to check if the user has entered am or pm, if not give them a message saying it must be included