Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 MY SQL DateTime Insertion Issue

Author  Topic 

irfanshirur
Starting Member

21 Posts

Posted - 2009-10-07 : 04:06:26

Hello

Iam New to MY SQL :)

I am facing one problem while inserting the Date time Value in MYSQL table Column (Column is of DateTime Type).

if i try to insert the Date of this format '10-07-2009 00:00:000' in MySQL it is inserting the default value.

MySQL take only the 'yyyy-mm-dd' Format.

Please can any one tell me how can we convert the Date into this perticuler format.

Thanks
Regards
Mohammed Irfan

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-10-07 : 04:19:08
This is MsSQL server forum.

Post your Question in http://forums.mysql.com/

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-10-07 : 06:05:34
quote:
Originally posted by irfanshirur


Hello

Iam New to MY SQL :)

I am facing one problem while inserting the Date time Value in MYSQL table Column (Column is of DateTime Type).

if i try to insert the Date of this format '10-07-2009 00:00:000' in MySQL it is inserting the default value.

MySQL take only the 'yyyy-mm-dd' Format.

Please can any one tell me how can we convert the Date into this perticuler format.

Thanks
Regards
Mohammed Irfan


Dont worry about how dates are stored in the table. When you want to show data in the front end application, do formation there

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -