How to capitalize day name?

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

How to capitalize day name?

21 May 2016, 11:00

FormatTime, TimeString,,dd'.'MM'.'yy' ('dddd')'
SendInput %TimeString%

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

How do I capitalize it?

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
Posts: 1683
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

This also works:

Code: Select all

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

Return to “Ask For Help”

Who is online

Users browsing this forum: Anangaya, bapl, woxaz, XMCQCX and 32 guests