showing results for - "convert datetime javascript mysql"
Micaela
04 Apr 2019
1function getTime() {
2    const date = new Date();
3    return date.getFullYear()
4            + '-' +
5            date.getMonth()
6            + '-' +
7            date.getDate()
8            + ' ' +
9            date.getHours()
10            + ':' +
11            date.getMinutes()
12            + ':' +
13            date.getSeconds();
14}