Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Date-format/AppleScript/date-format-1.applescript
Normal file
6
Task/Date-format/AppleScript/date-format-1.applescript
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
set {year:y, month:m, day:d, weekday:w} to (current date)
|
||||
|
||||
tell (y * 10000 + m * 100 + d) as text to set shortFormat to text 1 thru 4 & "-" & text 5 thru 6 & "-" & text 7 thru 8
|
||||
set longFormat to (w as text) & (", " & m) & (space & d) & (", " & y)
|
||||
|
||||
return (shortFormat & linefeed & longFormat)
|
||||
Loading…
Add table
Add a link
Reference in a new issue