multikaktuz
multikaktuz

Reputation: 26

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>";

Upvotes: 0

Views: 30

Answers (2)

Dave
Dave

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

shubham715
shubham715

Reputation: 3302

Try this

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

Upvotes: 1

Related Questions