When I am using new Date, I am getting something like as follows:
Wed Mar 21 2018 16:14:50 GMT+0530 (India Standard Time)
but what I want is xxxxxxxxxxxxxxxx
/(21032018041217PM
) formatted time string
Here(21032018041217PM
) is 21 is date, 03-month, 2018-year, 04-time, 12-minutes, 17-seconds
and It should be AM/PM
.