Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    853
    Thanks
    16
    Thanked 11 Times in 11 Posts

    Remove Leading Zeros?

    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 ?
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  2. #2
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    853
    Thanks
    16
    Thanked 11 Times in 11 Posts
    Nevermind, I found a way to do it.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •