|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
English ordinal suffix in CF
I need to display something like
on this 26th day of January, 2005 is there no defined function for English ordinal suffix in CF? I know there's one for PHP and I've googled several different keywords but they all come up w/ only PHP code. This isn't listed in Macromedia's manual on dateformat either. Anyone knows? Thanks |
|
#2
|
|||
|
|||
|
well, in the mean time, i went ahead and use a switch statement to check whether to use th or st, nd, rd .... if there's a predefined method then it would be better for next time
![]() |
|
#3
|
|||
|
|||
|
cflib.org has getOrdinal() which looks like it may fit the bill.
|
|
#4
|
|||
|
|||
|
Always check cflib.org if the built in functions won't do what you need.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#5
|
|||
|
|||
|
Quote:
good site, thanks |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > English ordinal suffix in CF |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|