Ok, this might sound stupid and noob but right now in my js, I have this code:
var date = new Date();
date.setHours(5, 00, 00);
which will give me 5:00:00. Is there a way to set it to am/pm?
setHours uses a 24-hour time format
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.