Forum Moderators: coopster
mktime ( [int hour [, int minute [, int second [, int month [, int day [, int year]]]]]]);
In your case, use substr() to get the relevant pieces from your string:
$timestamp = mktime(
0,
0,
0,
substr($mydate, 2, 2),
substr($mydate, 0, 2),
substr($mydate, 4)
); Please note that using a timestamp to represent a date is a bit silly ;)