How to capitalize day name?

Get help with using AutoHotkey and its commands and hotkeys
AverageBrick
Posts: 2
Joined: 21 May 2016, 10:58

How to capitalize day name?

21 May 2016, 11:00

^+!ScrollLock::
FormatTime, TimeString,,dd'.'MM'.'yy' ('dddd')'
SendInput %TimeString%
return


I'm using non-english date formating which means that my day name is lowercased.

How do I capitalize it?

Example:
monday -> Monday
User avatar
Capn Odin
Posts: 1308
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: Capitalize day name?

21 May 2016, 11:13

[Moderator's note: This post was moved from a duplicate topic started by guest 'AverageBrick'.]

Try this.

Code: Select all

FormatTime, Date, ddMMyy, dddd.MM.yy
MsgBox % Date "`n" Format("{:T}", Date)
Please excuse my spelling I am dyslexic.
User avatar
JoeWinograd
Posts: 1643
Joined: 10 Feb 2014, 20:00

Re: How to capitalize day name?

21 May 2016, 11:17

After the FormatTime command, do this:

Code: Select all

StringLower,TimeString,TimeString,T
This also works:

Code: Select all

StringUpper,TimeString,TimeString,T
The "T" parameter is what's crucial. Regards, Joe

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, autohotkeycool, Google [Bot], HELLiPOD, jetrotal, Loop, Weshuggah and 55 guests