Developer's Closet A place where I can put my PHP, SQL, Perl, JavaScript, and VBScript code.

21Apr/090
Function to Format a Date in PHP

This is a really simple function to format a date.

function date_formatter($date) {
	return date("Y-m-d G:i:s",$date);
}
Tagged as: , No Comments