Applications that paste the date? [resolved]
Applications that paste the date? [resolved]
We have so many copy+paste programs, but do any of them that easily pastes the current date? I'm specifically YYYY-MM-DD since that's the easiest to browse by date alone in a directory, but from experience that's not a common ask.
Suggestions welcome.
UPDATE: This question was resolved. Jump to the post describing the resolution.
Suggestions welcome.
UPDATE: This question was resolved. Jump to the post describing the resolution.
- Witchiepoo
- Posts: 5
- Joined: Thu Jun 29, 2017 9:05 am
Re: Applications that paste the date?
Hello my pretty,
What do you want/require?
(compiled)
It can be done in AutoHotkey with: FormatTime, Clipboard,, yyyy-MM-dd
(compiled)
Midas' command-line idea (fourth post below) could be extended by saving the command-line instructions as a .bat file and, then, converting it to a very small .exe file with Bat to Exe Converter.
Another possibilty is TimeStamp (at http://www.donationcoder.com/Software/S ... #TimeStamp), which sits in the system tray and "copies user-defined times and dates to the clipboard".
If 1, smaragdus's suggestion (third post below) looks really good to me.
Eeee! Hee-hee-heeeeee!
What do you want/require?
- Do you require a general-purpose clipboard-manager but with that particular extra functionality?
Or - Would a really, really simple program that just puts the current date in yyyy-mm-dd format into the clipboard ready for pasting suffice?
(compiled)
It can be done in AutoHotkey with: FormatTime, Clipboard,, yyyy-MM-dd
(compiled)
Midas' command-line idea (fourth post below) could be extended by saving the command-line instructions as a .bat file and, then, converting it to a very small .exe file with Bat to Exe Converter.
Another possibilty is TimeStamp (at http://www.donationcoder.com/Software/S ... #TimeStamp), which sits in the system tray and "copies user-defined times and dates to the clipboard".
If 1, smaragdus's suggestion (third post below) looks really good to me.
Eeee! Hee-hee-heeeeee!
Last edited by Witchiepoo on Thu Jul 13, 2017 7:23 am, edited 53 times in total.
Re: Applications that paste the date?
If you're using Autohotkey already for anything you could also simply add such additional functionality. Function found online, mixed with an example trigger, in this case I set it replace the string !date! with the date in your format whenever typed but the trigger can be substituted for anything:
Nice thing here is you can type it out in any text field and it simply replaces the trigger word with the result.
Code: Select all
:*?:!date!::
FormatTime, CurrentDateTime,, yyyy-MM-dd
SendInput %CurrentDateTime%
return
Re: Applications that paste the date?
ArsClip https://www.portablefreeware.com/index.php?id=734 has a configurable Date "macro"
Re: Applications that paste the date?
A little command line fu to make it all the more interesting:
- [/medium]
Code: Select all
> ECHO %date%
- [/medium]
Code: Select all
> SET TODAY=%date:-=% > ECHO %TODAY% > 20170707
- __philippe
- Posts: 687
- Joined: Wed Jun 26, 2013 2:09 am
Re: Applications that paste the date?
@Midas
Thanks for unearthing the neat "CLIP" command line tip...first time ever I heard about it.
...which goes to nicely refute the proverbial saw "Can't teach an old dog new tricks" ...
[/medium]
PS
Also very much like Specular's above suggestion about using a terse AHK macro solution
Thanks for unearthing the neat "CLIP" command line tip...first time ever I heard about it.
...which goes to nicely refute the proverbial saw "Can't teach an old dog new tricks" ...
Code: Select all
CLIP
Description:
Redirects output of command line tools to the Windows clipboard.
This text output can then be pasted into other programs.
Parameter List:
/? Displays this help message.
Examples:
DIR | CLIP Places a copy of the current directory
listing into the Windows clipboard.
CLIP < README.TXT Places a copy of the text from readme.txt
on to the Windows clipboard.
PS
Also very much like Specular's above suggestion about using a terse AHK macro solution
Last edited by __philippe on Fri Jul 07, 2017 11:19 am, edited 1 time in total.
Re: Applications that paste the date?
Don't mention it...
Re: Applications that paste the date?
Lintalist has a date "plugin" as well which can be assigned to a hotkey or shorthand
http://lintalist.github.io/#datetime-plugin
There is also a Calendar so you can pick a date
http://lintalist.github.io/#calendar-plugin
http://lintalist.github.io/#datetime-plugin
There is also a Calendar so you can pick a date
http://lintalist.github.io/#calendar-plugin
Re: Applications that paste the date?
Ok one more. Clipjump https://www.portablefreeware.com/?id=2523 users can develop their own plugins as well if they are familiar with AHK, so it should be possible to write a "Date" plugin and use it in Clipjump.
Re: Applications that paste the date?
This is a fantastic response. Thanks everyone for coming back with something! Now to start digging through the remarkable number of options...
Re: Applications that paste the date?
One can add Paste Current Date and Time command to CopyQ.
Instructions
Links
Paste Current Date and Time
paste-current-date-time.ini
Useful commands for CopyQ clipboard manager
Global commands
Instructions
- Create an empty INI file with the name paste-current-date-time.ini;
- Paste the following content;
this is the original INI, you may modify this line:Code: Select all
Paste the following lines: [Command] Command=" copyq: var time = dateString('yyyy-MM-dd hh:mm:ss') copy('Current date/time is ' + time) paste()" GlobalShortcut=meta+alt+t Icon=\xf017 Name=Paste Current Time
toCode: Select all
copy('Current date/time is ' + time)
so the command will look like this:Code: Select all
copy(time)
Code: Select all
[Command] Command=" copyq: var time = dateString('yyyy-MM-dd hh:mm:ss') copy(time) paste()" GlobalShortcut=meta+alt+t Icon=\xf017 Name=Paste Current Time
- Save the INI file;
- Open CopyQ main window;
- Go to File and choose Commands/Global Shortcuts;
- Use Load Commands;
- Load paste-current-date-time.ini file;
- Choose global shortcut for the command;
Links
Paste Current Date and Time
paste-current-date-time.ini
Useful commands for CopyQ clipboard manager
Global commands
Re: Applications that paste the date?
This is great news. I only just this week started testing some of the options detailed in this conversation and was looking for a reason to make a go of CopyQ. Thanks for the detailed suggestion.smaragdus wrote:One can add Paste Current Date and Time command to CopyQ
- __philippe
- Posts: 687
- Joined: Wed Jun 26, 2013 2:09 am
Re: Applications that paste the date?
As a side note, quite a few of our old standby text editors / notepads do include a "current date-time stamp" paste function, ferinstance:
Re: Applications that paste the date?
Also useful, thanks for that. This is a fine thread we've put together__philippe wrote:... quite a few of our old standby text editors / notepads do include a "current date-time stamp" paste function