Hi,
I'm having trouble trying to figure out exactly how I get the day of the week. I've learned how to get the hour and day and how to format it, but I still haven't understood how I would get the current weekday.
Don't mind too much how I did it, I just based that on what how I thought the uppercase "D" meant in ISO formatting. I have no idea what I'm doing lol.
I'm having trouble trying to figure out exactly how I get the day of the week. I've learned how to get the hour and day and how to format it, but I still haven't understood how I would get the current weekday.
Code:
set {_time} to now
set {_time} to {_time} formatted as "D"
replace all "1" in {_time} with "Sunday"
replace all "2" in {_time} with "Monday"
replace all "3" in {_time} with "Tuesday"
replace all "4" in {_time} with "Wednesday"
replace all "5" in {_time} with "Thursday"
replace all "6" in {_time} with "Friday"
replace all "7" in {_time} with "Saturday"
Don't mind too much how I did it, I just based that on what how I thought the uppercase "D" meant in ISO formatting. I have no idea what I'm doing lol.