I have the following as a template snippet, called date:
## {{date:YYYY-MM-DD}}T{{time:HH:mm}}
I then use a hotkey shortcut to open the template chooser, type D to jump to the date template, and then press enter to insert the template at the current position of the cursor. It formats with the date and time.
Angel