We use a date format that appends the day at the end of the date like so: 20180109tu@1730
. Is there any way to get the two letter day format?
I've decided to make work-around where I just manually go back a few characters and reformat accordingly.
nnoremap <leader>d "=strftime("%Y%m%d%a")<CR>Pxh~
nnoremap <leader>D "=strftime("%Y%m%d%a@%H%M%S")<CR>PF@hxhh~E
strftime()
function may only be a thin wrapper around the C function, it still is a Vim function. Furthermore, it's certainly possible to answer the question using Vim alone: the OP has done so! – Rich Jan 10 '18 at 10:26