r/applescript • u/OatmealDurkheim • Jul 25 '20
Date Input Script → Changing Format
I am running a simple script, which inputs date in the following format: Saturday, 25 July 2020 at 09:12:46
on run {input, parameters}set thedate to (current date) as stringtell application "System Events"keystroke thedateend tellend run
My question: is there any way I can modify this to display only the date?
(example: Saturday, 25 July 2020)
and another script to display date with 24h time without seconds.
(example: Saturday, 25 July 2020 at 09:12)
1
Upvotes
View all comments
Show parent comment
1
u/OatmealDurkheim Jul 25 '20
Super it works! Thank you!
What about the second example? Is it possible?
Display date with 24h time without seconds.
(example: Saturday, 25 July 2020 at 09:12)