Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
DateTime control of c# winform ,how to give minvalue time;

entry time:"00:00:00";
exit time :"00:00:00";

how to write code.

txtdate.text=null;
txtdate.text=string.empty;

not working if any other way.

thanks,
karthikeyan,
Bangalore.
Posted
Updated 9-Oct-12 0:02am
v2
Comments
vivektiwari97701 9-Oct-12 6:42am    
You Are Talking About DTPicker And Writing code for Txt Box for DTpicker Value Is Property To Set Date Time.or U just Explane ur Qus. ....

Try this
C#
txtdate.Text = System.DateTime.MinValue.ToString("hh:mm:ss");
 
Share this answer
 
Comments
pkarthionline 9-Oct-12 6:26am    
no.It also not working.
choudhary.sumit 9-Oct-12 6:29am    
what you need exactly bro???
pkarthionline 9-Oct-12 6:38am    
starting date and ending date , I have use DateTimePicker only for time.

when I clear the time it not clear, it means set time(00:00:00) .
it show same time only.



so,how do clear time like this way (00:00:00).or set the time this way(00:00:00)
arshad alam 9-Oct-12 6:42am    
do you want to retrieve time from DateTimePicker ? or do you want to set it
pkarthionline 9-Oct-12 6:46am    
already I have retrieve it.but now i need clear time for default time for (hh:mm:ss) to set datetimepicker (00:00:00) or txtdate.text="00:00:00";
Hi,
C#
txtTime.Value = Convert.ToDateTime(txtTime.MinDate);


it takes minvalue: 00:00:00

thanks friends.

Regards,
Karthikeyan,
Bangalore.
 
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