Title: Date format change
Last modified: August 21, 2016

---

# Date format change

 *  Resolved [TheoMessin](https://wordpress.org/support/users/theomessin/)
 * (@theomessin)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/date-format-change/)
 * Hi,
 * First of all I want to say that you have created a really great plugin for wordpress
   that saved me hours of searching. The only thing that bothers me is the date 
   format. I would like to change it from **MM/DD/YYYY** to **DD/MM/YYYY** because
   I operate in Europe.
 * Best regards and thanks,
    TheoMessin
 * [http://wordpress.org/plugins/rsvp/](http://wordpress.org/plugins/rsvp/)

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

 *  Thread Starter [TheoMessin](https://wordpress.org/support/users/theomessin/)
 * (@theomessin)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/date-format-change/#post-3968062)
 * I actually found out how to fix this. I will use the MM/DD/YYYY format on the
   back-end but on the front-end, I will change the code to spit out the DD/MM/YYYY
   format. Very easy:
 * Change this (Plugins > Edit > RSVP > rsvp/rsvp_frontend.inc.php)
 *     ```
       function rsvp_frontend_handler($text) {
       	global $wpdb;
       	$passcodeOptionEnabled = (rsvp_require_passcode()) ? true : false;
       	//QUIT if the replacement string doesn't exist
       	if (!strstr($text,RSVP_FRONTEND_TEXT_CHECK)) return $text;
   
       	// See if we should allow people to RSVP, etc...
       	$openDate = get_option(OPTION_OPENDATE);
       	$closeDate = get_option(OPTION_DEADLINE);
       	if((strtotime($openDate) !== false) && (strtotime($openDate) > time())) {
       		return rsvp_handle_output($text, sprintf(__(RSVP_START_PARA."I am sorry but the ability to RSVP for our wedding won't open till <strong>%s</strong>".RSVP_END_PARA, 'rsvp-plugin'), date("m/d/Y", strtotime($openDate))));
       	}
       ```
   
 * To This:
 *     ```
       function rsvp_frontend_handler($text) {
       	global $wpdb;
       	$passcodeOptionEnabled = (rsvp_require_passcode()) ? true : false;
       	//QUIT if the replacement string doesn't exist
       	if (!strstr($text,RSVP_FRONTEND_TEXT_CHECK)) return $text;
   
       	// See if we should allow people to RSVP, etc...
       	$openDate = get_option(OPTION_OPENDATE);
       	$closeDate = get_option(OPTION_DEADLINE);
       	if((strtotime($openDate) !== false) && (strtotime($openDate) > time())) {
       		return rsvp_handle_output($text, sprintf(__(RSVP_START_PARA."I am sorry but the ability to RSVP for our wedding won't open till <strong>%s</strong>".RSVP_END_PARA, 'rsvp-plugin'), date("d/m/Y", strtotime($openDate))));
       	}
       ```
   
 *  Thread Starter [TheoMessin](https://wordpress.org/support/users/theomessin/)
 * (@theomessin)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/date-format-change/#post-3968063)
 * Just a copy paste of my front-end PhP code:
 * _[ **869 lines of code moderated, that’s just way too much.** [For that many lines of code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   please use [pastebin.com](http://pastebin.com/) instead. ]_

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

The topic ‘Date format change’ is closed to new replies.

 * ![](https://ps.w.org/rsvp/assets/icon.svg?rev=3477888)
 * [RSVP and Event Management](https://wordpress.org/plugins/rsvp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rsvp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rsvp/)
 * [Active Topics](https://wordpress.org/support/plugin/rsvp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rsvp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rsvp/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [TheoMessin](https://wordpress.org/support/users/theomessin/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/date-format-change/#post-3968063)
 * Status: resolved