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'); ?>
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago
Get the weekly newsletter!
see an example newsletter