|
-
Apr 18th, 2007, 02:50 AM
#1
Thread Starter
Hyperactive Member
data and time
MyDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
dtDay = MyDate.ToString("MM/dd/yyyy");
dtTime= MyDate.ToString("hh:mm:ss tt");
comm.CommandText = "INSERT INTO tblData(DTE,TME) VALUES(#"dtDay"#,#"dtTime"#)";
i want to separate date and time in the database
i have a message data type mismatch
anyone can solve this?
tnx...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|