I (and maybe others also) prefer time in 24H format. So we need to change the date format string. The sample time provided helps in validating whether the resulting date time is in the proper expected format or not.
The current example date and time sample is: July 26th, 2018 4:48am
In this, for checking the final output, since the time is 4:48am, 12h and 24h both have the same representation (04). I would suggest changing it to 4:48pm, so that 12h representation is 04 and 24h is shown as 16.