Cmd + shift + p -> configure user snippets -> new global snippets -> paste the following snippet -> save -> and type currenttime
{
"current time": {
"prefix": "currenttime",
"body": [
"$CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND.000Z"
],
"description": "Insert current time"
}
}
Supported snippet variables can be found here. More about vs code snippets.