moment.js does exactly that and more, should be use for anything related with date string manipulation