hi all,

i am using ms date and time picker and am unable to assign a value to it.
i am getting the error read only property.

can anyone tell me how to solve this?
thanks

How did you assign the value? can you please post your code here...

Meanwhile try this one...

DateTimePicker1.Value = "2008-10-20"

you can't assign a value to the dtpicker control. You can only read a value from the control,infact you can change other properties like mindate and maxdate.But value is a readonly property of the control.

try it
dtpicker1.value = Date

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.