javascript number split

Posted by Jaron787 on Stack Overflow See other posts from Stack Overflow or by Jaron787
Published on 2010-03-17T12:18:43Z Indexed on 2010/03/17 12:21 UTC
Read the original article Hit count: 330

Filed under:
|
|

Can anyboyd help me split up this date number in javascript so that when it is outputted to the screen it has slashes between the 4th and 5th number and the 6th and 7th number, so that it can be understood by a vxml voice browser. The number can be any value so i need it to work for any eight digit number.

Like so:

20100820

2010/08/20

Many thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about number