• Date Fields

    By Milind S Apte 1 decade ago

    Hi,

    I am trying to display the value from a date field in myDocumentDemo customer control in computedField3. I am able to show text  filed value but not date field. 

    e.g

    this works :

     

    var ac = myDoc.getDocument().getItemValueString("Ac_AccountName");
    
    var rg = myDoc.getDocument().getItemValueString("ReportRegion");
    
     
    
    return ac + " - " + rg;
    

    myDoc.getDocument().getItemValueString("Ac_AccountName");

    This does not work&nbsp;</div>
    

    myDoc.getDocument().getItemValueString("ReportDate");

    its show blank value. 

    I have also tried 

    myDoc.getDocument().getItemValueDate("ReportDate");  but get error Goofy

    i have also tried. 

    var dt:Date = myDoc.getDocument().getItemValueString("ReportDate");

    dt.toString() ;

    but no luck. No

    Any suggestion!!!!!! Wink

    thanks in advance

    -Milind

     

     

    • Maybe..

      By F van der Linden 1 decade ago

      You could try dt:java.util.Date =  myDoc.getDocument().getItemValue("ReportDate")[0]