I am taking a date from a JSON object in the format of 2012-12-31 and trying to convert it into friendly values and output it.
var redeemableDate = item.
Combining jacks and joe larson's response, the following code worked well for me:
$scope.formatDate = function(date){ var date = date.split("-").join("/"); var dateOut = new Date(date); return dateOut; };
works well for Chrome and Safari... :) Thanks Jack and joe larson!!!