Start New Discussion Reply to this Discussion to get a only date from date time picker...
we r trying to insert date from datetime picker into mssqlserver 2005 but it also enter defult time(00:00) with it in database.
using we want only date...
& xyzdtp.value.date &
38 Minutes
Discussion Span
jaimin4829
Light Poster
25 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
you can do like this
datetimepicker.value.date.tostring()
'or you can set format property according to your requirement .
Regards
M.Waqas Aslam
Master Poster
743 posts since Aug 2011
Reputation Points: 50
Solved Threads: 120
Skill Endorsements: 2
and if you have datatype datetime in your db , then auto time will be added in your records , this will not effect any thing , and you can perform any task.
Regads
M.Waqas Aslam
Master Poster
743 posts since Aug 2011
Reputation Points: 50
Solved Threads: 120
Skill Endorsements: 2
and if you have datatype datetime in your db , then auto time will be added in your records , this will not effect any thing , and you can perform any task.
Regads
'ya in mssql2005 datatype is datetime so...but it affect while comparing....
'also using formate property it enter time in database..
jaimin4829
Light Poster
25 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
no it will not effect your result can you please write your query here , so that i can better ans you.
M.Waqas Aslam
Master Poster
743 posts since Aug 2011
Reputation Points: 50
Solved Threads: 120
Skill Endorsements: 2
© 2013 DaniWeb® LLC
Page rendered in 0.0635 seconds
using 2.65MB