var d = new Date();
var formatted = ('0' + d.getDate()).slice(-2) + '.' + ('0' + (d.getMonth()+1)).slice(-2) + '.' + d.getFullYear();
var d = new Date()
- create date objectd.getDate()
- returns day of the monthd.getMonth()
- returns month of the yeard.getFullYear()
- returns current year (4 digits)formatted
- this variable will contain formatted date string
group: date_format
link_youtube: https://youtu.be/0uZBv0tAryM