datetime Question

  • hello, I am trying to get the date to come out without milliseconds. Below is the script I'm using but it displays 2004-11-11 16:29:14.887

    select 1 as KeyID, getdate() as datetime_text

    how do I get rid of the milliseconds?

  • BOL (Books on Line) will help with this.

    Select 1 as keyID,CONVERT(smalldatetime, getdate(),120) as datetime_text

    Quand on parle du loup, on en voit la queue

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply