Reputation: 26
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>";
Upvotes: 0
Views: 30
Reputation: 3091
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>";
Upvotes: 1