calendar function anyone ?
Richard Gaskin
ambassador at fourthworld.com
Tue Feb 13 16:07:08 EST 2007
jbv wrote:
> Does anyone know of a function to find out, for instance, which day of
> the week was sept. 18th 1918 or which day of week will be dec. 5th 2025 ?
function GetWeekday pDate
set the centurycutoff to (char -2 to -1 of pDate)-1
convert pDate to dateitems
return line (last item of pDate) of the weekdayNames
end GetWeekday
To get the day in the user's local language change the last line to:
return line (last item of pDate) of the system weekdayNames
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list