March 28th, 2012, 11:05 AM
Join Date: Oct 2011
Time spent in forums: 13 h 33 m 11 sec
Reputation Power: 3
Originally Posted by requinix
Those can be simplified.
(\d is equivalent to [0-9])
The time one is perfect but the date one requires more validation.
Will this be military format, though? If not, how would I know the difference in AM or PM? I've always just used military time to calculate. also, I'm trying to get the format in YYYY-MM-DD. I'm used to MySQL style databases, but I'm switching to the .Net world and working with SQL Server 2008, now.
*** This is an MVC3 app, also. Just throwing that out there.