Get weekday of DD/MM/YYYY

I thought I'd almost got here with this script


set ShotDate to do shell script "exiftool -s3 -DateTimeOriginal /Users/StudioA/Desktop/MJC_0025.JPG "

logShotDate

set theYear to (characters 1 thru 4 of ShotDate) as text


set theMonth to (characters 6 thru 7 of ShotDate) as text

set theDay to (characters 9 thru 10 of ShotDate) as text

set myDate to (theDay & "/" & theMonth & "/" & theYear)

set thedate to datemyDate

logthedate

weekdaymyDate

the date will show the day of the week in its format


(*date Thursday, 21 August 2014 00:00:00*)


but I can't then set the weekday to Thursday?



Result:

error "Can’t get weekday \"21/08/2014\"." number -1728 from weekday "21/08/2014"

Mac Pro, OS X Mavericks (10.9)

Posted on Aug 21, 2014 3:01 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Get weekday of DD/MM/YYYY

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.