GETUTCDATE()

  • Hi everybody,

    I have this small request:

    If I run GETUTCDATE(), I get the UTC time with time at the end, like

    yyyy-mm-dd hh:mm:ss:ms.

    I would like to have UTC without sec and ms, like:

    yyyy-mm-dd hh:mm

     

    Do you know how the get this in a fast way (indeopendent from reginal settings)

     

    Thank a lot

  • SELECT CAST(GETUTCDATE() AS SMALLDATETIME)

    SELECT CONVERT(VARCHAR(16),GETUTCDATE(),20)

    Prasad Bhogadi
    www.inforaise.com

  • Thank a lot

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

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