I'm trying to use the `date()` function in PHP to display the current date in the format "d.m.Y.", but for some reason, I'm getting the incorrect date. I have used the `strtotime()` function to generate the timestamp for the current time, which should be passed as the second argument for `date()`.
Here's the code I'm using:
However, when I run this code, instead of getting the current date, I'm getting a different date altogether. I have checked the server time, and it seems to be correct. I'm not sure what I'm doing wrong here.
Can anyone please help me figure out why I'm getting an incorrect date with this code? Am I missing something obvious in my syntax or understanding of these functions? I would appreciate any guidance or suggestions.
Thank you in advance for your help!