Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
i would like to display a date on my Blog. I have used this Code for displaying the date:
<?php the_time('l, j. F Y'); ?>
But that uses the time of the latest article. How can i display the current date?
Just use the PHP date() function as Michael suggested. So your date code might look like this:
<?php echo date('l, j. F Y'); ?>
Required, but never shown