The PHP mktime() function returns the Unix timestamp for a date.

				
					<?php
echo date('M-d-Y', mktime(0, 0, 0, 1, 11, 2013));
?>
				
			

Output

				
					Jan-11-2013
				
			

Syntax

				
					mktime(hour, minute, second, month, day, year)
				
			

Parameters

ParameterDescription
hourSpecifies the hour
minuteSpecifies the minute
secondSpecifies the second
monthSpecifies the month
daySpecifies the day
yearSpecifies the year