I am fairly new to JSON & JavaScript so I apologise if it seems I haven’t done enough research. With reference to the following link:
http://jsbin.com/imekip/edit#javascript,live
I would like to know how to amend the code from:
Our next gig is at The Fillmore, San Francisco, CA, US on 2012-04-18
To:
Our next gig is at The Fillmore, San Francisco on 4th May
Thank you so much in advance.
it takes a little of code to do
1) in the each loop you have to store the date variable and assign the name of each month to the number of the month using the date object
2) Also check to convert the day to a string using some string function
3) Least but not last, the location must be cut till the first comma appears, I have used the split function since you may use the rest of the string in further situations
Full working demo here
http://jsfiddle.net/theodore/WrCLW/2/