Title: PHP Date Function Question
Last modified: August 20, 2016

---

# PHP Date Function Question

 *  [jmarcello](https://wordpress.org/support/users/jmarcello/)
 * (@jmarcello)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/php-date-function-question/)
 * How do you display the date based on the end-users local computer, not the server?
 * Any help is greatly appreciated. Thanks.

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

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/php-date-function-question/#post-2268559)
 * I am no expert on the subject, but I suspect that you cannot do that with php
   since it is executed on the server.
 * My guess is that you would need to use javascript.
 * Maybe a js expert can offer some help.
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/php-date-function-question/#post-2268564)
 * vtxyzzy is correct about the PHP
 * If you’re a beginner to javascript, probably the simplest way of output the current
   time on your site is:
 * [Simple Javascript Date](http://www.tizag.com/javascriptT/javascriptdate.php)
 * Javascript as was mentioned runs in the browser, on the site visitors side of
   things. Above is not necessarily the cleanest way to do things but it’s definitely
   the easiest if you’re new to Javascript. Most JS Experts may bamboozle you with
   why you shouldn’t use ‘document.write’ etc.
 * Good luck with your query, hope this helps.

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

The topic ‘PHP Date Function Question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Harry](https://wordpress.org/support/users/harmck/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/php-date-function-question/#post-2268564)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
