💛

JavaScript Date Format DD/MM/YYYY

Output: 15/01/2025
Quick Reference
Output
15/01/2025

Format Date as DD/MM/YYYY in JavaScript

💛 JavaScript
const date = new Date(); // Method 1: toLocaleDateString const formatted = date.toLocaleDateString('en-GB'); console.log(formatted); // Output: 31/12/2025 // Method 2: Manual formatting const dd = String(date.getDate()).padStart(2, '0'); const mm = String(date.getMonth() + 1).padStart(2, '0'); const yyyy = date.getFullYear(); console.log(`${dd}/${mm}/${yyyy}`); // Output: 31/12/2025

Other Formats in JavaScript

DD/MM/YYYY in Other Languages

Official Documentation

For more information about date formatting in JavaScript, see the official documentation:

JavaScript Date Documentation →

Related Pages