PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Calendar only show +2 and after is working ... but

  1. So, I'm using this to only display dates from today +2 days and it works well.

    <script type="text/javascript">
    jQuery.noConflict();
      jQuery(document).ready(function($) {
            $( "#input_1_8" ).datepicker({ minDate: '+2', gotoCurrent: true, prevText: '', showOn: 'both', buttonImage: '/wp-content/plugins/gravityforms/images/calendar.png', buttonImageOnly: true });
      });
    </script>

    As I'm in the UK I want to show dates at 27/12/2012.
    Without this extra piece all works fine, with it reverts to US - 12/27/2012

    Any ideas how to get it back to 'proper' UK dates?

    Cheers.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  2. Try adding an explicit date format to your jQuery:

    [js]
    <script type="text/javascript">
    jQuery.noConflict();
    jQuery(document).ready(function($) {
    	$( "#input_1_8" ).datepicker({
    	  minDate: '+2',
    	  dateFormat: 'dd/mm/yy',
    	  gotoCurrent: true,
    	  prevText: '',
    	  showOn: 'both',
    	  buttonImage: '/wp-content/plugins/gravityforms/images/calendar.png',
    	  buttonImageOnly: true });
    	});
    </script>
    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  3. Ah! That did it perfectly.

    Many thanks.

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  4. You're welcome.

    Posted 11 years ago on Thursday November 29, 2012 | Permalink

This topic has been resolved and has been closed to new replies.