2010-02-16 199 views

回答

4

我找到了解决方案。

NumberVar DayIn := Day (PrintDate); 
Totext (DayIn , 0) 
& (if DayIn in 4 to 20 then 'th' else 
if remainder (DayIn , 10) = 1 then 'st' else 
if remainder (DayIn , 10) = 2 then 'nd' else 
if remainder (DayIn , 10) = 3 then 'rd' else 'th') 

http://www.kenhamady.com/news0910.shtml

+0

它是否适合你,你应该把它标记为接受的答案 – MartW 2010-02-16 16:44:55

+0

伟大的..这个工程的第11届第12和13太..我已经不知道有关“4-20”条款当我第一次看到它。 – ShoeLace 2012-01-20 02:00:59