The format method access a date object as well.

This commit is contained in:
Alex Tselegidis 2022-01-17 04:45:58 +01:00
parent 9467113ad9
commit fe7d6de462
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ window.App.Utils.Date = (function () {
/**
* Format a YYYY-MM-DD HH:mm:ss date string.
*
* @param {String} dateValue The date string to be formatted.
* @param {String|Date} dateValue The date string to be formatted.
* @param {String} [dateFormatType] The date format type value ("DMY", "MDY" or "YMD").
* @param {String} [timeFormatType] The time format type value ("regular", "military").
* @param {Boolean} [withHours] Whether to add hours to the returned string.