Home

Awesome

DateHotkey

GitHub release (latest by date) GitHub all releases GitHub Donate Donate

This Autohotkey Script should solve daily problems whith calculating dates. With this script you can easily retrieve the date of current, passed or comming days.

Read this in other languages: English, German

Installation

There are two ways to use the script.

  1. You download the DateHotkey.exe file from releases and run it.
  2. You download the DateHotkey.ahk and run it with a installed version of AutoHotkey.

Commands

German commands here

CommandDescription
#today[modifier]Date of current day
#yesterday[modifier]Date of yesterday
#tomorrow[modifier]Date of tomorrow
#mo(nday)[modifier]Date of monday this week
#tu(esday)[modifier]Date of tuesday this week
#we(dnesday)[modifier]Date of wednesday this week
#th(ursday)[modifier]Date of thursday this week
#fr(iday)[modifier]Date of friday this week
#sa(turday)[modifier]Date of saturday this week
#su(nday)[modifier]Date of sunday this week
#c(alendar)w(eek)[modifier]Current calendar week

You can type them in every text boxes, wherever you want.

Modifier

With the modifier, you can modifie the resulting date. There you can add or substract a specific amount of days, weeks, months or years. That means, if you need the date of monday next week or the calendar week in twenty days, you can easily get them by setting the modifier.

Modifier Regex:

([\+\-0-9]+(d(ays?)?|w(eeks?)?|m(onths?)?|y(ears?)?)?)+

Rules for Modifier

If you want to use the Modifier, you have to follow these rules

Examples

ExampleDescription
#yesterdayDate of yesterday
#saturdayDate of saturday this week
#weDate of wednesday this week
#today+4days-6weeksTodays Date, plus 4 days and minus 6 weeks
#monday+4days-2daysDate of monday in the week, comming in 2 days
#tu4days+6wDate of tuesday in the week, comming in 4 days and 6 weeks
#yesterday4d6w3monthsYesterdays Date, plus 4 days, 6 weeks and 3 months
#tomorrow2y4d6wTomorrows Date, plus 2 years, 4 days and 6 weeks
#su500d40y2mDate of sunday in the week, comming in 500 days, 40 years and 2 months
#calendarweek4wCalendar week in 4 weeks
#cw3d2w4mCalendar week in 3 days, 2 weeks and 4 months

Customization

You are able to configure the following options: Recognition Key: This will be the key, which is completing your DateHotkey sequence. (F.e. *#today\RETURN KEY\ or #tomorrow\TAB KEY\) Ending Key: This is the key, which will be pressed, after your sequence was replaced. Date Format: There you can configure your prefered formatting for the date string. Language: There you can configure your prefered language.

To access this options, right-click on the TrayIcon in the lower right corner of your taskbar.

Contributing

If you want to support this project, you have two options:

GitHub Sponsor: here

PayPal Donation: here

Thank you, for your contribution!

License

GitHub

Dependencies

DependencieSourceAuthorLicense
HotstringsourcemenixatorApache 2.0
GetDateFormatExsourcejNizMNot given