﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Analytical Applications / Teradata   / date format problum / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 16:33:02 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: date format problum</title><link>http://www.teradata.com/teradataforum/Topic9423-5-1.aspx</link><description>Rahul,you are probably inserting the date in incorrect format.as per my understanding you want to store date '2007/10/27' into your table but you ended up inserting 3907/10/27. your insert should have been as follows VALUES('0001','2007/10/27','2099/12/31',....);this would store the correct date values into your table.Internally teradata stores the date values in integer format.Here you have attempoted to directly insert an integer into the date colunmn. Later on,When you queried the table for date column, the integer date has been converted into appropriate representation.per my understanding, when you inserted 20071027 into the table, teradata understands it as date 3907/10/27.</description><pubDate>Wed, 24 Oct 2007 14:34:50 GMT</pubDate><dc:creator>LeoIssac</dc:creator></item><item><title>RE: date format problum</title><link>http://www.teradata.com/teradataforum/Topic9423-5-1.aspx</link><description>You need to use a date constant.  Try this instead:INSERT INTO RAHUL_DB.DATE_TABLEVALUES('0001',date '2007-10-27',date '2099-12-31',,);</description><pubDate>Wed, 24 Oct 2007 14:32:52 GMT</pubDate><dc:creator>bobduell</dc:creator></item><item><title>date format problum</title><link>http://www.teradata.com/teradataforum/Topic9423-5-1.aspx</link><description>in my table 	      PRIME_FLIGHT_END_RANGE CHAR(4) 	CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL DEFAULT '    ',	      MIGRATION_START_DATE DATE FORMAT 'YYYY-MM-DD' NOT NULL DEFAULT DATE ,	      MIGRATION_END_DATE DATE FORMAT 'YYYY-MM-DD' NOT NULL DEFAULT DATE ,	      DATE_TIMEZONE_REF CHAR(1) 	CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL DEFAULT ' ',	      LAST_UPDATE_TSMP TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0))INSERT INTO RAHUL_DB.DATE_TABLEVALUES('0001',20071027,20991231,);but when i do select option teh out put of date is as 10/27/3907	12/31/3999  1900 years is getting added to the date which i have enteredcan anyone tell me the reasion and how to debug itthank you in advanceRAHUL :)</description><pubDate>Wed, 24 Oct 2007 10:55:18 GMT</pubDate><dc:creator>Rahul</dc:creator></item></channel></rss>