View Full Version : Php date suffix

08-01-2006, 03:24 PM
Hi there,

In my php code, if i put "j S" in a variable as the date it comes up with...

1st (but it displays it as the st higher than the 1)

But how do i make the suffix like st, th, rd, etc not go up so it would look like this...


So the suffix would be all on 1 line and the st wouldn't move up?

Is there any way to do this? :confused:

08-01-2006, 04:12 PM
That is quite interesting. What does your html source look like? What you're saying is the date function added <super> tags to the output? I've never heard of that before. Can you post the html source code?

Are you sure it's not just putting a space between the number and the "st"? Try "jS", not "j S".

08-01-2006, 10:49 PM
Yes i have put the s right next to the j and its worked!