Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <script> // Put current date into a variable var date = new Date(); // Some locale examples document.open(); document.write( "<p>" + date.toLocaleString('en-US') + "<p>" + date.toLocaleString('en-GB') + "<p>" + date.toLocaleString('en-AU') + "<p>" + date.toLocaleString('en-NZ') + "<p>" + date.toLocaleString('th') + "<p>" + date.toLocaleString('cs') + "<p>" + date.toLocaleString('de') + "<p>" + date.toLocaleString('af') + "<p>" + date.toLocaleString('el') + "<p>" + date.toLocaleString('da') + "<p>" + date.toLocaleString('ko') + "<p>" + date.toLocaleString('ar') + "<p>" + date.toLocaleString('es') + "<p>" + date.toLocaleString('fr') + "<p>" + date.toLocaleString('vi') + "<p>" + date.toLocaleString('zh') + "<p>" + date.toLocaleString('ja') ); document.close(); </script>
Preview