Skip to content
Advertisement

Extract the number before the “am” or “pm”

I want to extract the numbers only from before the “am” and “pm”. If “pm” not avalilable means then only from before “am”.

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement