Check out our Community Discord and join our Talent Collective. This is a simple code, sometimes we forget how to use it. Hopefully, this tutorial is useful for all of you. Then we will get back the time in am/pm format. var hrs = Number(timestart.match(/^(\d )/)) var mnts = Number(timestart.match(/:(\d )/)) var format = timestart.match(/\s(.*)$/) if (format = "PM"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |