I am retrieving a date from an API with format:
Thu, 13 Dec 2012 12:59:05 +0200
Note that the above format is a printed as a string and I would like to format it as such:
Thu, 12:59
What would be the easiest way without using jQuery replace() so many times?
Try this–