Skip to content

SudoSOS Back-end API / helpers / toLocalMySQLString

Function: toLocalMySQLString() ​

ts
function toLocalMySQLString(date): string;

Print the date to a string in MySQL format (YYYY-MM-DD mm:hh:ss), but keep it in the local timezone

Parameters ​

ParameterTypeDescription
dateDate-

Returns ​

string