title: json date format with a specific syntax
body: <p>I know there are several good quality answers to this question but i'm struggling with the syntax to get it to work with:</p>
  
  <pre><code>$.getJSON( "ticketweb.json",
              function(data){
                $.each(data.events, function(){
                $('ul#listings').append("&lt;li&gt;&lt;div class=event-col&gt;&lt;span class=name&gt;" +this.eventname+ "&lt;/span&gt;&lt;p&gt;" +this.eventurl+ "&lt;/p&gt;&lt;div class=date&gt;" +this.dates.startdate+ "&lt;/div&gt;&lt;p&gt;" +this.eventimages+ "&lt;/p&gt;&lt;p&gt;" +this.venue.name+ "&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;");
  
              });
          });
  </code></pre>
  
  <p>where </p>
  
  <pre><code>&lt;div class=date&gt;" +this.dates.startdate+ "&lt;/div&gt; 
  </code></pre>
  
  <p>part of the .append is the bit I'm wanting to format. I've tried numerous methods but not sure how to incorporate the more universal json format methods into the syntax above. </p>
  
  <p>EDIT:  Date format  i would ideally liek would be:    Sat 17th Nov, although 17.11.12 would be ok too.</p>
  
  <p>the output i current get is 20120629100000. There is no forward or backslashes (/Date(1224043200000)/) like I've seen on similar questions, I'm not sure if there is an element of good coding practise I'm missing here. My jSON file is completely valid entered below:</p>
  
  <pre><code> "events":   [
      {
    "eventid": "4419605",
    "facebookeventid": "",
    "eventname": "",
    "description": "",
    "eventurl": "",
    "additionallistingtext": "",
    "status": "SalesEnded",
    "tags": "",
    "spotifyuri": "",
    "dates":       {
      "startdate": "20120529010000",
      "enddate": "20121231235500",
      "onsaledate": "20120309084000",
      "announcedate": "20120309115333",
      "timezone": "EDT"
    },
    "venue":       {
      "venueid": "210795",
      "name": "Online",
      "venueurl": "",
      "city": "Online",
      "state": "",
      "postalcode": "00000",
      "country": "US",
      "address": "Online",
      "twitterid": "",
      "venueimages":         {
        "large": "",
        "small": ""
      }
    },
    "eventimages": [""],
    "prices":       {
      "pricelow": "$195.00",
      "pricehigh": "$195.00",
      "pricedisplay": "$195.00"
    },
    "attractionList":       [
              {
        "sequence": "0",
  
        "billing": "1.00",
        "genre": "Seminar/Lecture",
        "links": "",
        "media": ""
      },
              {
        "sequence": "1",
        "billing": "0.75",
        "links": "",
        "media": ""
      },
              {
        "sequence": "2",
        "billing": "0.75",
        "links": "",
        "media": ""
      }
    ]
  },
  </code></pre>