Menu

display date in GT.M

Help
Frank
2012-06-25
2012-12-29
  • Frank

    Frank - 2012-06-25

    Does the GT.M $zdate function support single digit day and month display in date, like 1/1/2012?

     
  • K.S. Bhaskar

    K.S. Bhaskar - 2012-06-25

    $zdate() does not have such an option.  But, it's pretty easy to do what you want.  For example:

    GTM>write $zdate($horolog)
    06/25/12
    GTM>set tmp=$zdate($horolog) write +$piece(tmp,"/",1),"/",+$piece(tmp,"/",2),"/",+$piece(tmp,"/",3)
    6/25/12
    GTM>
    

    Regards
    - Bhaskar

     

Log in to post a comment.