I want to format date to have something like this:
6.12.2017 10:44:33
I want to use only js not any plugin.
I tried like this:
new Date(entry.duedate).toLocaleString()
But this is not what i want because i get date like this : 6/12/2017
I want to format date to have something like this:
6.12.2017 10:44:33
I want to use only js not any plugin.
I tried like this:
new Date(entry.duedate).toLocaleString()
But this is not what i want because i get date like this : 6/12/2017