View Full Version : Remove Leading Zeros?

09-27-2004, 06:04 AM
I am outputting my info from a MySQL Database (dates actually)

However I have the dates stored in seperate field on my db and in a format such as below:

month 05
date 09
year 2004

How can I remove the leading zeros for the month and the date, without messing up once the month and dates are greater than 9 ?

09-27-2004, 06:29 AM
Nevermind, I found a way to do it.