<?php //Years $prevYear = date("Y")-1; $currYear = date("Y"); $nextYear = date("Y"); //will give you the same things too : "Dec2010" (. is for concatenation in PHP) //Months $prevMonth = date("m")-1; $currMonth = date("m"); $nextMonth = date("m"); //will give the same value for the 3 variables 2021051918 //Days $prevDay = date("d")-1; $currDay = date("d"); $nextDay = date("d"); //will give the same value for the 3 variables 2021051918 echo '<img src="https://myImage/analysis/models/gfs/'.$currYear.''.$currMonth.''.$prevDay.'18/wpac_1.png"/>'; ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)