0) { $cval = $_POST['inp_convertval']; $ret = 0; if(is_numeric($cval) && $cval >= 0) { $timestamp = $cval; } else if(($ret = strtotime($cval)) != -1) { $timestamp = $ret; } else { $error = true; } } $date = date("j F Y H:i:s (r)", $timestamp); /* ============================================================ */ /* Page output */ /* ============================================================ */ ?> UNIX timestamp to date to UNIX timestamp converting tool

UNIX timestamp to date to UNIX timestamp converting tool

Error: Invalid input string

UNIX timestamp:
Date:


Convert UNIX timestamp to date or date to UNIX timestamp:

Example inputs:

1089205926
2004-07-07 16:12:06
7 July 2004
7 July 2004 16:12:06