A getAmPm method has been added to the Date object. Any date object will be able to return whether the datetime is am or pm.
The function can be use like this:
The function can be use like this:
var date = new Date(); date.getAmPm();It would return
pm.