Started working on getting the time logged today.

This commit is contained in:
Mario Basic
2015-06-14 00:31:22 +02:00
parent a43037fe78
commit 229f514819
12 changed files with 83 additions and 48 deletions

View File

@@ -0,0 +1,13 @@
function getTodaysDateInFormat()
{
var today = new Date();
var month = today.getMonth() + 1;
var date = today.getDate();
if(month < 10) month = '0' + month;
if(date < 10) date = '0' + date;
return today.getFullYear() + '-' + month + '-' + date;
}
export default getTodaysDateInFormat;