Title: Bug: backslashes in date format
Last modified: August 24, 2016

---

# Bug: backslashes in date format

 *  Resolved [corrideat](https://wordpress.org/support/users/corrideat/)
 * (@corrideat)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-backslashes-in-date-format/)
 * Hello,
 * Backslashes are required in date formats to enter characters that otherwise have
   meaning for the PHP `date` function. However, the application has a bug related
   to this:
 * Backslashes need to be added twice, and they’re internally converted to single
   slashes, shown on the next form.
 * Consider this process:
 * 1. Enter date format \\x. It gets stored as \x.
    2. Edit entry, not changing 
   date format. Field is \x, it gets converted to x and stored this way.
 * There are two possible fixes:
    A. Fix at 1. so that \\x gets stored as \\x and\
   x gets stored as \x. B. Fix edit form so that \x gets shown as \\x in the form.
 * Thanks,
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

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

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-backslashes-in-date-format/#post-6046788)
 * Thanks I will look into it. Are you using a date format that uses this? If so
   what is it so I can use it as a test item.
 * Thanks!
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/bug-backslashes-in-date-format/#post-6046969)
 * I tested this and have added a note to fix this in a future release.
 * Thanks for pointing it out to us. I am going to mark this request as resolved
   for now since it is now on the list of things to fix.
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/bug-backslashes-in-date-format/#post-6046977)
 * hello corrideat
 * could you please update to the latest version 2.2.6 released today and see if
   your problem is resolved?
 * the latest release should contain a fix to your problem – please let us know 
   if it’s sorted out, thanks!

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

The topic ‘Bug: backslashes in date format’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/bug-backslashes-in-date-format/#post-6046977)
 * Status: resolved