1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

  2. ROCKETS GAMEDAY
    Jeff Balke joins Dave for live postgame as the Rockets take on the Raptors at Toyota Center. Come hang with us for live fan interaction and commentary!

    LIVE! ClutchFans on YouTube

SAS: date formats

Discussion in 'BBS Hangout' started by Luckyazn, Dec 18, 2015.

  1. Luckyazn

    Luckyazn Member

    Joined:
    Jun 23, 2003
    Messages:
    4,375
    Likes Received:
    68
    Does anyone know the date format in SAS to display the date/time:

    mm/dd/yyyy hh:mm:ss

    I have only been able to find:

    SAS Statement Results

    put dt mdyampm25.

    9/15/2008 3:53 PM

    However, I am needing the seconds in the time stamp.

    Thanks,
     
  2. heypartner

    heypartner Member

    Joined:
    Oct 27, 1999
    Messages:
    64,080
    Likes Received:
    60,108
    DATETIMEw.d

    But to format it exactly as you show, try more than one function and concatenate the string as needed with your "/"
     

Share This Page