109
rated 0 times
[
114]
[
5]
/ answers: 1 / hits: 17101
/ 11 Years ago, fri, june 7, 2013, 12:00:00
I have Date in this format mm/dd/yy
example: 04/11/13
and time in the format HH:MM:SS
example: 17:02:30
I have to parse above two values and put in a variable dateTime
with following format
YYYY-MM-DDTHH:MM:SSS
2013-04-11T17:02:30.000
What is best way to do it in AngularJS or in Javascript. I also need to verify the user input and make sure it is a valid mm/dd/yy
date and a valid HH:MM:SS
time
I know there are tons of duplicate/similar questions but I couldn't find one which answers above, please let me know if you found one.
More From » jquery