datetimeToString
Formats a Date into a date/time string by parsing dateFormat.
If you don't set the date or dateFormat,it will parse current time in dateFormat format by default.
Return
the formatted time string.
Since
0.0.1
Parameters
date
Date object.