Not really code related but website related which in a different view is programming. The copyright footer on a website has to be of current year, right!?!
Asked
Active
Viewed 123 times
-4
-
@priya_singh 2 lines in the Question, still to lazy to read it ;) – AlexG Oct 19 '16 at 11:38
-
A quick google search would quickly answer this question – JordanMazurke Oct 19 '16 at 11:57
2 Answers
0
Yeah! But It uses PHP not HTML Actually. it uses the following code: *
$date=Date('Y');
if($date==2016){
echo 2016;
}else{
echo "2016-".$date;
}
?>*
If you are not talking about this, Please me know.

Coder Pradip
- 104
- 4
-
You don't necessarily have to do this in PHP. The OP didn't clarify the language. I have done this javascript before. – Lexi Oct 19 '16 at 12:39
0
I suppose you have to update the year date on copyright only if you make any change on your site.

lisarko8077
- 299
- 5
- 23