Check Different Date Formats

Hi

I’m using the following list to check against another list of events…

set Date2009List to {"Thursday 1 January", "Friday 2 January", "Saturday 3 January", "Sunday 4 January", "Monday 5 January", "Tuesday 6 January", "Wednesday 7 January", "Thursday 8 January", "Friday 9 January", "Saturday 10 January", "Sunday 11 January", "Monday 12 January", "Tuesday 13 January", "Wednesday 14 January", "Thursday 15 January", "Friday 16 January", "Saturday 17 January", "Sunday 18 January", "Monday 19 January", "Tuesday 20 January", "Wednesday 21 January", "Thursday 22 January", "Friday 23 January", "Saturday 24 January", "Sunday 25 January", "Monday 26 January", "Tuesday 27 January", "Wednesday 28 January", "Thursday 29 January", "Friday 30 January", "Saturday 31 January")

However I also need to check for dates formatted like “Thursday 1st January” and a shortened version “Thurs 1 Jan”

Is there a shorter way to write this, rather than repeating my list 3 times?

many thanks

LJ

Do you mean the first 5 letters of the day, then the number and then the first 3 letters of the month ?
Then use this,

--put the Date2009List variable here, I didn't include it in this message
set FormattedDates to {}
repeat with i in Date2009List
	set end of FormattedDates to text 1 thru 5 of word 1 of i & space & word 2 of i & space & text 1 thru 3 of word 3 of i
end repeat

About the shorter way, I don’t know…