Re: 1-1-2000 into unix time

From: Date: Tue, 25 Jul 2000 18:42:55 +0000
Subject: Re: 1-1-2000 into unix time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8114@lists.php.net to get a copy of this message
At 17:07 25.07.00 +0200, you wrote: >what is the simplest way to convert string time into to unix one? > >thanks >moshe > $day=explode("-",$your inputstring) /* echo date ("d n Y", mktime(0,0,$year,$month,$day));*/ echo date ("d n Y", mktime(0,0,$day[2],$[1],$day[0])); BTW RMF mktime(), date() g`s Oliver

« previous php.general (#8114) next »