####-##-##
Insert today's date EU

Script key: Insert today’s date EU

Posted by fixie

Install

Details

Label ####-##-##
Voice Over Insert today's date EU
Script
var now = new Date();
var dd = now.getDate();
var mm = now.getMonth()+1;
var yyyy = now.getFullYear();

if(dd<10) {
    dd='0'+dd
} 

if(mm<10) {
    mm='0'+mm
} 

var today = yyyy+'-'+mm+'-'+dd+' ';
var selRange = getSelectedRange();
setSelectedText(today);
setSelectedRange(selRange[0]+11,0);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus