mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-19 05:40:44 +00:00
Some final adjustments for widget reload & export
This commit is contained in:
@ -273,6 +273,14 @@ class ValueUtils
|
||||
return (`${date.toString("yyyy-MM-ddTHH:mm:ssZ")}`);
|
||||
}
|
||||
|
||||
public static formatDateTimeForFileName(date: Date)
|
||||
{
|
||||
const zp = (value: number): string => (value < 10 ? `0${value}` : `${value}`);
|
||||
const d = new Date();
|
||||
const dateString = `${d.getFullYear()}-${zp(d.getMonth() + 1)}-${zp(d.getDate())} ${zp(d.getHours())}${zp(d.getMinutes())}`;
|
||||
return (date);
|
||||
}
|
||||
|
||||
public static getFullWeekday(date: Date)
|
||||
{
|
||||
if (!(date instanceof Date))
|
||||
|
Reference in New Issue
Block a user