PDA

View Full Version : formatting date


al2six
11-24-2006, 10:47 PM
I want to modify my news script to automatically post the new news articles into the forum. the only thing i can't figure out is the date. How can i convert a normal time stamp into the weird number vbulletin uses? IE, how do I change 24 November 2006 21:02:00 to some number like 1085397939

thanks

CyberAlien
11-25-2006, 08:23 AM
Use mktime() (http://uk2.php.net/manual/en/function.mktime.php) or strtotime() (http://uk2.php.net/manual/en/function.strtotime.php)