I want to get the time string from moment() but using toDate() function and not format() function
I am able to get the time using format function but it differ from the date and time returned from toDate() function.
moment().utc().toDate()
returned Mon Aug 05 2019 17:08:08 and
moment().utc().format('hh:mm a')
returned 11:40
I want to get 11:40 by using toDate() function and not format() function.