In Mongodb I am storing date and time in ISODate format.
Which looks like this
ISODate(\"2012-07-14T01:00:00+01:00\")
Using nodejs
you can use mongo query like this yearMonthDayhms: { $dateToString: { format: "%Y-%m-%d-%H-%M-%S", date: {$subtract:["$cdt",14400000]}}}
HourMinute: { $dateToString: { format: "%H-%M-%S", date: {$subtract:["$cdt",14400000]}}}