0 First it is not clear where is input coming from and where is output coming from.
Which time value you want to assign is not quite clear.
If you just want current date use 'new Date()'.
If you already have all of the values with you construct a string in following format:
yyyy-MM-ddTHH:mm:ss and then use it to create a new date time variable, for example:
- var stringValue = '2017-07-21T06:32:56';
- var dt = new Date(stringValue);
- alert(dt);
Hope it helps.