I am creating a script that will be making calls to an Informix database. Part of the Query is based on date ranges. Using gmtime and time I have gotten the dates formated to M/D/YYYY.
The problem is getting leading zeros in front of the Month and Day when they are only one digit. The final outcome of the date format should be:
01/01/2006
instead of:
1/1/2006
Any insight would be greatly appreciated.
The problem is getting leading zeros in front of the Month and Day when they are only one digit. The final outcome of the date format should be:
01/01/2006
instead of:
1/1/2006
Any insight would be greatly appreciated.