Aamnah's Dev Notes
Home
About
Quotes
Resources
What i did
Sections
APIs
Algorithms
Amazon Web Services (AWS)
Armbian
Bash Scripting
CSS & Sass
Cheatsheets
Commands
Databases
DevOps
Drafts
Expo
Flutter
Git & Github
Graphql
Hardware
JS Interview Prep
JavaScript
Jekyll
Linux
Misc
Node-api
Node.js
OpenCart
PHP
Programming
Python
Quotes
Raspberry Pi
React Native & Expo
Reactjs
Redux
Resources
System Administration
Web Development
Workflow
iOS & Swift
Most Used Tags
linux
,
es2015
,
mysql
,
bash
,
how-to
,
array-methods
,
commands
,
concepts
,
cheatsheet
,
free
,
sass
,
ssh
,
compass
,
python
,
backups
,
editor
,
hugo
,
opencart
,
raspberry-pi
,
basics
,
Converting 24 hour time to 12 hour time using Javascript
Edit on Github
javascript/Date-howto-convert-24-hour-time-to-12-hour-time-using-javascript.md
Jun 03, 2014
JavaScript
// convert hours to 12-hour format hours = ((hours + 11) % 12 + 1);
Links
StackOverflow: Convert date to another timezone in JavaScript