12 hour format time in SQL datatype

  • I can convert time datatype to 12 hour format using convert etc. But is there any option to save the time in 12 hour format in SQL tables using any settings or property or any other methods?

  • The time portion of a datetime can be saved in a column of datatype "time".

    The data is always saved in the internal representation, which is not 24 hours nor 12 hours: it is a time, nothing more.

    The human readable representation depends on how you format the data on the client application.

    See this article for more details:

    http://www.sqlservercentral.com/articles/T-SQL/88152/

    -- Gianluca Sartori

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

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