Skip to content

A simple HTML Code that gets your current time in HH:MM:SS:AM/PM, MM/DD/YYYY and Day of the Week format, with dark mode.

License

Notifications You must be signed in to change notification settings

thedoggybrad/getdatetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOGO

getdatetime

A simple HTML Code that gets your current time in HH:MM:SS:AM/PM, MM/DD/YYYY and Day of the Week format, with dark mode.

How it works?
1.) It gets your current date and time via JavaScript.
2.) It sync the current date and time via JavaScript.


Note: It does not depend on a time server, the time and date of your current device is the one being used. So, it is possible to use it offline.

Instructions for the PWA app installation (Works even you are offline)

1.) Mobile Browsers
-To install the app, just click the 3 dots (or similar on other browsers) then click Install App.

2.) Desktop Browsers
-To install the app, you may click the share button on the address bar then click the download button
or
-To install the app, click the 3 dots or similar then go to More Tools and click Create Shortcut. Make sure to tick the option "Open in new window" or similar.

About

A simple HTML Code that gets your current time in HH:MM:SS:AM/PM, MM/DD/YYYY and Day of the Week format, with dark mode.

Resources

License

Stars

Watchers

Forks