JqueryUI - The datepicker can show the week of the year. The default calculation follows the ISO 8601 definition


SUBMITTED BY: jlolk3r

DATE: Feb. 1, 2016, 8:40 a.m.

FORMAT: HTML

SIZE: 647 Bytes

HITS: 2686

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery UI Datepicker - Show week of the year</title>
  6. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  7. <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  8. <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  9. <link rel="stylesheet" href="/resources/demos/style.css">
  10. <script>
  11. $(function() {
  12. $( "#datepicker" ).datepicker({
  13. showWeek: true,
  14. firstDay: 1
  15. });
  16. });
  17. </script>
  18. </head>
  19. <body>
  20. <p>Date: <input type="text" id="datepicker"></p>
  21. </body>
  22. </html>

comments powered by Disqus