Title: Date/time formatting error
Last modified: August 18, 2016

---

# Date/time formatting error

 *  Resolved [aaronh](https://wordpress.org/support/users/aaronh/)
 * (@aaronh)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/datetime-formatting-error/)
 * When I call the_date() or the_time() with string arguments they return a {1} 
   in front of the string. When I call those functions with numeric arguments they
   return fine.
 * For example:
 * the_date(‘l, F j, Y’) returns {1}Saturday,${1}July 2, 2006
    the_date(‘F j, Y’)
   returns {1}July 2, 2006
 * On the other hand, numeric (and am/pm) arguments are no problem:
 * the_date(‘g:i a’) returns 11.14 am
    the_date(‘m.j.y’) returns 07.1.02
 * as they should.
 * Calling the_time() with the same arguments produces the same results.
 * Any help would be appreciated.

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

 *  [Nazgul](https://wordpress.org/support/users/nazgul/)
 * (@nazgul)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/datetime-formatting-error/#post-413022)
 * It has to do with and old version of PHP in combination with a change they made
   in WordPress 2.0.3.
 * They fixed it in the yet to be released 2.0.4 version, but take a look at [this topic](http://wordpress.org/support/topic/74496)
   for some workarounds in the meantime.
 *  Thread Starter [aaronh](https://wordpress.org/support/users/aaronh/)
 * (@aaronh)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/datetime-formatting-error/#post-413035)
 * Modifying the mysql2date() call, as recommended in the topic you referenced, 
   fixed the problem. Apologies for reposting; somehow my search missed the original
   topic.

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

The topic ‘Date/time formatting error’ is closed to new replies.

## Tags

 * [arguments](https://wordpress.org/support/topic-tag/arguments/)
 * [date](https://wordpress.org/support/topic-tag/date/)
 * [format](https://wordpress.org/support/topic-tag/format/)
 * [string](https://wordpress.org/support/topic-tag/string/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [aaronh](https://wordpress.org/support/users/aaronh/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/datetime-formatting-error/#post-413035)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
