4 Replies Latest reply: Apr 24, 2008 7:11 AM by Hydrowizard RSS

    cfcalendar date formatting

    kodemonki Community Member
      cfcalendar returns Tue Apr 22 00:00:00 GMT-0400 2008 but when I output dateFormat(TestDate,'mm/dd/yyyy') I get 04/22/2000

      Is there a way to correctly parse that kind of timestamp?

      Thanks!

      <cfcalendar
      width="200"
      height="180"
      name="TestDate"
      selecteddate="#dateFormat(TestDate,'mm/dd/yyyy')#"
      onchange="getURL('blog.cfm?TestDate=' + TestDate.selectedDate);">