multikaktuz multikaktuz - 1 month ago 5
PHP Question

How do i make custom date while its running realtime php

How can i make custom date while its running realtime with php

I want the date shown be 5.11.1900 (real time would be 5.11.2016)

echo "Today is " . date("d.m.Y") . "<br>";

Answer

Try This, pass Year manually in date function or you pass date or manually in date functionlike this.

$year = "1990"; // add your year 
echo "Today is " . date("d.m.".$year) . "<br>";