4 Replies Latest reply on Oct 28, 2011 5:03 PM by Jason Woodcock

    Date Formatter inside List ItemRenderer...

    Jason Woodcock

      I'm trying to format the timestamp date from a mySQL database that I am displaying inside of a list in a mobile app. The formatter elsewhere works perfectly... However, when i call it in the item renderer for the list, no dice... I'm sure it's a syntax error, but I don't seem to be able to figure it out:

       

      Here's my IconItemRenderer for the list:

       

       

      <s:IconItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                          xmlns:s="library://ns.adobe.com/flex/spark"  labelField="displayLongDTF.format(date)" 
                          messageField="username" iconWidth="32" iconHeight="32" decorator="@Embed('assets/button-help-32x32.png')" >
      </s:IconItemRenderer>
      

       

      Here's my renderer decleration:

       

       

      <s:DateTimeFormatter id="displayLongDTF" dateTimePattern="EEE, MM / dd, yyyy h:mm a"/>
      

       

      And when I execute... It's simply blank where the date should be...