Remove dash from list of dates
I have a list of dates that are all formatted as such:
04-12
05-03
I want to remove the dash and put a slash (/).
I tried .replace("-", "/")
; and .replace(/开发者_如何学C-/, \/);
Any advice?
Try:
.replace("-", "/");
Hmmm, and there's an annoying min character requirement for answers...
EDIT:
and yes .replace
does work: http://jsfiddle.net/karim79/yGWgn/1/
精彩评论