ical2json/htdocs/strtotime/index.php

5 lines
137 B
PHP

<?php
$date = strtotime($_REQUEST["date"]);
$format = isset($_REQUEST["format"]) ? $_REQUEST["format"] : "U";
echo date($format, $date);