Date stuff

new topic     » topic index » view thread      » older message » newer message

"Oktober" is "October" in dutch, guess Im not as awake as I would think,
when I would take the effort to think about it. Oh well... happens..


>yes, we coulda threaded an algorithm that divided
>by ten if it was over ten and checked the remainder
>against 1 & 2 & 3; but, i didn't feel like it. do you?

Well, it aint *that* hard:
replace the 'add day' section with:


-- Add day
text = text & sprintf (" %d", {date_seq[3]})
day = remainder (date_seq[3],10)

if day = 1 then
    text = text & "st"
elsif day = 2 then
    text = text & " nd"
elsif day = 3 then
    text = text & " rd"
else
    text = text & "th"
end if

--
Ralf

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu