JavaScript Dates
<!DOCTYPE html> <html> <body> <h2>Reading Date Components</h2> <script> const d = new Date("2026-07-15T14:05:00"); console.log(d.getFullYear()); // 2026 console.log(d.getMonth()); // 6 (July) console.log(d.getDate()); // 15 console.log(d.getDay()); // day of week, 0-6 console.log(d.getHours()); // 14 </script> </body> </html>