remove a hyphen from string in jquery

Posted by Klbaiju under jQuery on 3/20/2015 | Points: 10 | Views : 900 | Status : [Member] | Replies : 0
I want to replace a hyphen from a string

var b = "20-March-2015";

var s = b.replace(/-/g, '')

iam gettting the output as 20March2015.

but i need like this 20 March 2015 means a space instead of hyphen.

how it possible.




Responses

(No response found.)

Login to post response