Jump to content

stripping left ended zeros off a number


cooldude832

Recommended Posts

I solved that issue, but now i'm using the date function and usnig the indentiacl mktime field getting 2 different dates

 

<?php
		$date = date("l nS \of F Y",mktime(0,0,0,$date_data[1],$date_data[2],$date_data[0]));
		$date2 = date("M-d-Y",mktime(0,0,0,$date_data[1],$date_data[2],$date_data[0]));
?>

Date 1: Saturday 6th of June 2002

Date 2: Jun-08-2002

 

How can this be they are the same identical mktime() ???

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.