Home Forums SQL Server 2008 T-SQL (SS2K8) Problem with CAST to VARCHAR with SUBSTRING Function RE: Problem with CAST to VARCHAR with SUBSTRING Function

  • I forgot to mention a very important point.

    The Date is stored in an AS400 DB2 format.

    The 1st character 1 or 0 - Century, where 1 > the year 2000 (21st century and 0 is 1999 (20th centrury)

    The value 1080518 would translate to 2008-05-18.

    1080518

    1080707

    1080515

    1080731

    1080815

    1080822

    1080911

    1080916

    1080925

    1080926

    1080927

    1081023

    For better, quicker answers on T-SQL questions, click on the following...
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/