UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 220 B
export function today(t="-",e=!0){const n=new Date,o=n.getMonth()+1,r=n.getDate(),g=[`${o<10?"0":""}${o}`,`${r<10?"0":""}${r}`];return e?g.unshift(n.getFullYear().toString()):g.push(n.getFullYear().toString()),g.join(t)}