Guest User

Untitled

a guest
Dec 10th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  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' );
Add Comment
Please, Sign In to add comment