Home Forums SQL Server 2008 SQL Server Newbies Help needed in converting an int datatype to MM/DD/YYYY and converting another int to HH:MM PM RE: Help needed in converting an int datatype to MM/DD/YYYY and converting another int to HH:MM PM

  • if you convert to CHAR(12), most of the string gets truncated no matter the format.

    try a CHAR(37) instead.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!