| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <title>jQuery UI Datepicker - Format date</title> 5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> 6 <script type="text/javascript" src="../../jquery-1.3.2.js"></script> 7 <script type="text/javascript" src="../../ui/ui.core.js"></script> 8 <script type="text/javascript" src="../../ui/ui.datepicker.js"></script> 9 <link type="text/css" href="../demos.css" rel="stylesheet" /> 10 <script type="text/javascript"> 11 $(function() { 12 $("#datepicker").datepicker(); 13 $("#format").change(function() { $('#datepicker').datepicker('option', {dateFormat: $(this).val()}); }); 14 }); 15 </script> 16 </head> 17 <body> 18 19 <div class="demo"> 20 21 <p>Date: <input type="text" id="datepicker" size="30"/></p> 22 23 <p>Format options:<br /> 24 <select id="format"> 25 <option value="mm/dd/yy">Default - mm/dd/yy</option> 26 <option value="yy-mm-dd">ISO 8601 - yy-mm-dd</option> 27 <option value="d M, y">Short - d M, yy</option> 28 <option value="d MM, y">Medium - d MM, yy</option> 29 <option value="DD, d MM, yy">Full - DD, d MM, yy</option> 30 <option value="'day' d 'of' MM 'in the year' yy">With text - 'day' d 'of' MM 'in the year' yy</option> 31 </select> 32 </p> 33 34 </div><!-- End demo --> 35 36 <div class="demo-description"> 37 38 <p>Display date feedback in a variety of ways. Choose a date format from the dropdown, then click on the input and select a date to see it in that format.</p> 39 40 </div><!-- End demo-description --> 41 42 </body> 43 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |