I have a date format:
Thursday, 10 Aug 2017
I have an array of dates like this above. I have to find out the earliest date in the the array in javascript. How can I effectively parse the date in the above format to check which is the earliest date. How can I do that?
I also tried Date.parse method. Its working. Is it a good way of doing this? Can this method break or throw some exceptions? Also will this add any added latency to the code? As this method checking is alll done client side and we don't want any latency of any kind.
Any leads appreciated.