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
    We get another Amen Thompson vs. Tyler Herro matchup as the Rockets take on the Heat in Miami Saturday. Come join Dave and Ben with Paulo Alves as they recap the game.

    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,071
    Likes Received:
    60,077
    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