Date Formatting Without System Calls

yves COPPE yvescoppe at skynet.be
Sun Mar 17 13:14:01 EST 2002


Hello

Atteniton please :

function systemMonth monthNumber
   if monthNumber < 1 or monthNumber > 12 then return empty --no 
support for the Hebrew calendar
   put "1999,"&monthNumber&",0,0,0,0,0" into testDate
   convert testDate to long system date
   get word 2 of testDate
   if it is a number then return word 3 of testDate else return it -- 
weak logic??
end systemMonth

this function doesn't return the correct month on my french system

I've replaced the second line with :

put "1999,"&monthNumber&",1,0,0,0,0" into testDate


So, it gives the correct monthName

Hope this help

-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the use-livecode mailing list