Handle basic date format & Substitute parser in AngularJS