Thanks a lot Camelot!
So changing the format is not possible through AppleScript. Was not aware of this.
Now I got a different solution, I wrote a function to convert the source date to formatted date (dd-mmm-yy) before writing it to report sheet. Here is the AppleScript function -
on formatDate(theDate)
-- Format the date to "DD-MMM-YY"
set AppleScript's text item delimiters to ""
set theYear to year of theDate as text
set theMonth to month of theDate as integer
set theDay to day of theDate as integer
if theDay < 10 then
set theDay to "0" & theDay as text
else
set theDay to theDay as text
end if
set monthList to {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
set theMonth to item theMonth of monthList
set theYear to (text 3 thru 4 of theYear)
return theDay & "-" & theMonth & "-" & theYear
end formatDate
and usage -
set purDate to value of cell 2 of row row_xxx of tabXXX - where the original date was stored
set value of cell 5 of row row_status of tabStatus to formatDate(purDate) -- where the status has dd-mmm-yy date