Zettelkasten id
Shared by Niran Sabanathan,Nsaba1
Script
function formatAMPM(date) {
var hours = date.getHours();
var minutes = date.getMinutes();
var day = date.getDate();
var month = date.getMonth();
var year = date.getFullYear();
var strTime = year + "" + month + "" + day + "" + hours + minutes
return strTime;
}
editor.replaceSelection(formatAMPM(new Date()));