How to capitalize day name?

Get help with using AutoHotkey (v1.1 and older) 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: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

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: 2200
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

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 (v1)”

Who is online

Users browsing this forum: Google [Bot], peter_ahk, Spawnova, toddhere, USS_Sandhu and 317 guests