Date Formatting Without System Calls

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


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



Email : yvescoppe at

More information about the use-livecode mailing list