2005-06-15 by vanderveckette

Add the following code to the top of your news style:

<PerlCode>
if( $Day > 3 && $Day < 21 ) {
$Day = $Day.'th';
}elsif( $Day % 10 == 1 ) {
$Day = $Day.'st';
}elsif( $Day % 10 == 2 ) {
$Day = $Day.'nd';
}elsif( $Day % 10 == 3 ) {
$Day = $Day.'rd';
}else {
$Day = $Day.'th';
} </PerlCode>

Now just use <Field: Day>

Categories:




Page last modified on February 02, 2009, at 06:58 PM