Minvalue C#Windows的时间 [英] Time for minvalue c# windows

查看:48
本文介绍了Minvalue C#Windows的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


c#winform的DateTime控件,如何给小数值时间;

进入时间:"00:00:00";
退出时间:"00:00:00";

如何编写代码.

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

如果有其他方法,则无法正常工作.

谢谢,
karthikeyan,
班加罗尔.

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.

推荐答案

尝试一下
txtdate.Text = System.DateTime.MinValue.ToString("hh:mm:ss");



txtTime.Value = Convert.ToDateTime(txtTime.MinDate);



它需要最小值:00:00:00

谢谢朋友.

问候,
Karthikeyan,
班加罗尔.



it takes minvalue: 00:00:00

thanks friends.

Regards,
Karthikeyan,
Bangalore.


这篇关于Minvalue C#Windows的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆