Title: Get Current Date For Theme
Last modified: August 21, 2016

---

# Get Current Date For Theme

 *  [teckn1caLity](https://wordpress.org/support/users/teckn1cality/)
 * (@teckn1cality)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/get-current-date-for-theme/)
 * `<?php echo date("F j Y"); ?>`
 * That’s the code I’m using to integrate into my header to display the CURRENT 
   date. As of right now it’s 9:04 PM EST on NOVEMBER 2 2013, but it’s displaying
   NOVEMBER 3 2013 instead. Is this due to a time-zone issue, wrong code or simply
   wordpress not displaying the right date?
 * Any help is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/get-current-date-for-theme/#post-4281834)
 * It’s probably returning UTC time for some reason. Try this and see if it makes
   any difference.
 *     ```
       <?php date_default_timezone_set('America/New_York'); ?><?php echo date("F j, Y"); ?>
       ```
   
 *  Thread Starter [teckn1caLity](https://wordpress.org/support/users/teckn1cality/)
 * (@teckn1cality)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/get-current-date-for-theme/#post-4281941)
 * Will do. I’ll have to test it once it’s 9pm EST it’ll change the date prematurely
   so if it doesn’t then that means this code will work. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get Current Date For Theme’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [teckn1caLity](https://wordpress.org/support/users/teckn1cality/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/get-current-date-for-theme/#post-4281941)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
