Examples on date format

static void date2StrExample(Args _arg)
{
    inventtable inventtable;
    date d = today();
    date DateForDisplayMethod;
    str s;
    ;
    s = date2Str(d, 123, 2, -1, 2, -1, 4);
    Box::info( "Today's date is " + s);
   
    select firstonly inventtable;
    Box::info(date2Str(DateTimeUtil::date(inventtable.createdDateTime), 123, 2, -1, 2, -1, 4));
   
    DateForDisplayMethod = str2Date(s,123);
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.