Advertisement
Virajsinh

Date And Time List Of Format html

Nov 9th, 2024
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.65 KB | Source Code | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Time Format Dropdown</title>
  7. </head>
  8. <body>
  9.  
  10. <h2>Select a Date Format</h2>
  11.  
  12. <select id="dateFormatDropdown">
  13.     <option value="YYYY-MM-DD">YYYY-MM-DD (2024-11-09)</option>
  14.     <option value="MM/DD/YYYY">MM/DD/YYYY (11/09/2024)</option>
  15.     <option value="DD-MM-YYYY">DD-MM-YYYY (09-11-2024)</option>
  16.     <option value="DD/MM/YYYY">DD/MM/YYYY (09/11/2024)</option>
  17.     <option value="MMM DD, YYYY">MMM DD, YYYY (Nov 09, 2024)</option>
  18.     <option value="DD MMM YYYY">DD MMM YYYY (09 Nov 2024)</option>
  19.     <option value="YYYY.MM.DD">YYYY.MM.DD (2024.11.09)</option>
  20.     <option value="YYYY/MM/DD">YYYY/MM/DD (2024/11/09)</option>
  21.     <option value="MM-DD-YYYY">MM-DD-YYYY (11-09-2024)</option>
  22.     <option value="YYYY-MM-DDTHH:mm:ssZ">YYYY-MM-DDTHH:mm:ssZ (2024-11-09T00:00:00Z)</option>
  23.     <option value="DD/MM/YY">DD/MM/YY (09/11/24)</option>
  24.     <option value="MM-DD-YY">MM-DD-YY (11-09-24)</option>
  25.     <option value="YY/MM/DD">YY/MM/DD (24/11/09)</option>
  26. </select>
  27.  
  28. <h2>Select a Time Format</h2>
  29.  
  30. <select id="timeFormatDropdown">
  31.     <option value="HH:mm">HH:mm (24-hour format, e.g., 14:30)</option>
  32.     <option value="hh:mm A">hh:mm A (12-hour format, e.g., 02:30 PM)</option>
  33.     <option value="hh:mm a">hh:mm a (12-hour format, e.g., 02:30 pm)</option>
  34.     <option value="HH:mm:ss">HH:mm:ss (24-hour format, e.g., 14:30:15)</option>
  35.     <option value="hh:mm:ss A">hh:mm:ss A (12-hour format, e.g., 02:30:15 PM)</option>
  36.     <option value="hh:mm:ss a">hh:mm:ss a (12-hour format, e.g., 02:30:15 pm)</option>
  37.     <option value="HH:mm Z">HH:mm Z (24-hour format with timezone, e.g., 14:30 UTC)</option>
  38.     <option value="hh:mm A Z">hh:mm A Z (12-hour format with timezone, e.g., 02:30 PM UTC)</option>
  39.     <option value="hh:mm a Z">hh:mm a Z (12-hour format with timezone, e.g., 02:30 pm UTC)</option>
  40.     <option value="HH:mm:ss.SSS">HH:mm:ss.SSS (24-hour format with milliseconds, e.g., 14:30:15.123)</option>
  41.     <option value="hh:mm:ss.SSS A">hh:mm:ss.SSS A (12-hour format with milliseconds, e.g., 02:30:15.123 PM)</option>
  42.     <option value="hh:mm:ss.SSS a">hh:mm:ss.SSS a (12-hour format with milliseconds, e.g., 02:30:15.123 pm)</option>
  43.     <option value="HH:mm:ss.SSS Z">HH:mm:ss.SSS Z (24-hour format with milliseconds and timezone)</option>
  44.     <option value="hh:mm:ss.SSS A Z">hh:mm:ss.SSS A Z (12-hour format with milliseconds and timezone)</option>
  45.     <option value="hh:mm:ss.SSS a Z">hh:mm:ss.SSS a Z (12-hour format with milliseconds and timezone)</option>
  46. </select>
  47.  
  48. </body>
  49. </html>
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement