SHARE
TWEET

Untitled

a guest Dec 10th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Default:'mm/dd/yy'
  2. The format for parsed and displayed dates. This attribute is one of the regionalisation attributes. For a full list of the possible formats see the formatDate function.
  3.  
  4. Code examples
  5.  
  6. Initialize a datepicker with the dateFormat option specified.
  7. $( ".selector" ).datepicker({ dateFormat: 'yy-mm-dd' });
  8. Get or set the dateFormat option, after init.
  9. //getter
  10. var dateFormat = $( ".selector" ).datepicker( "option", "dateFormat" );
  11. //setter
  12. $( ".selector" ).datepicker( "option", "dateFormat", 'yy-mm-dd' );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top