Click here to Skip to main content
16,021,285 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I used cc1.GMDatepicker control.How to pass it value.I used it as input parameter.
So i save it as datetime.I am comparing it with other value so for both I use CONVERT(VARCHAR(10), rdate, 101).
Posted

hi,

Take that value in string and cancat it with DateTime.MinValue.ToLongTimeString() or
DateTime.MaxValue.ToLongTimeString() as per your need to get Correct result.
it will add time with you date so that when you compare your string with your database datetime column you will get Correct result .
 
Share this answer
 
For starters, if you are using a 3rd party control you should at least tell us who makes the control so that there is a proper point of reference.

It turns out you are using the GrayMatter Software Date Picker control.

When you initialize the control you just need to set the date.
<cc1:gmdatepicker ...="" date="<%Put Your value here%>" xmlns:cc1="#unknown"> ... </cc1:gmdatepicker>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900