Datetimepicker
hi,
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
naura paxRank #2,843 · 502 reputationPosted Oct 5, 2009, 1:48 AM EDT
You can set the Format property of DateTimePicker control to "Custom" and set value of CustomFormat as blank.
And at runtime you can set CustomFormat value on ValueChange event of the control.
dtp_ValueChanged(....)
{
dtp.CustomFormat="dd/MM/yyyy";
}
roy himanshu98 reputationPosted Oct 5, 2009, 2:19 AM EDT
thanx for ur response,but still it shows default current date when form is load.
naura paxRank #2,843 · 502 reputationPosted Oct 5, 2009, 2:33 AM EDT
roy himanshu98 reputationPosted Oct 5, 2009, 5:14 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 5, 2009, 5:22 PM EDT
DateTime Picker Control Can not have Blank Value as Default
Some date Must Be Selected when Loading Control ...
you can Also Specify Some other date instead of default one but you have to select ..it cant be blank :)
dont forget to mark "do you like this answer" if answer helped you :)