如何更改日历控件(如DDMMYY)的格式 [英] how to change the format of calendar control like DDMMYY

查看:184
本文介绍了如何更改日历控件(如DDMMYY)的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想了解日历控件.

如何将日期格式更改为DDMMYY.


在此先感谢

hello all,
i want to know about calendar control.

How can I change the date format to DDMMYY.


thanks in advance

推荐答案

您不应该这么做.
您不知道客户期望使用这种格式的日期-这取决于他的操作系统设置,日期以什么格式显示.
如果他在美国怎么办? MMDDYY
或日本:YYMMDD
您可能要做的就是使这个问题感到困惑.
You shouldn''t.
You do not know that the client expects dates in that format - it is down to his OS setup what format dates display in.
What if he is in the US? MMDDYY
Or Japan: YYMMDD
All you will do is potentially confuse the issue.


在Windows窗体中添加日期时间选取器"控件.
写入单击控件,然后在属性窗口中设置Format属性.
有以下几种可用的格式
-长
-短
-时间
-自定义

根据要求,您可以设置控件的格式.
Add the Date Time Picket control in the windows form.
Write Click on the control and set the Format property in the property window.
There are following formats are avilable
- Long
- Short
- Time
- Custom

As per requirement you can set the format of the control.


这篇关于如何更改日历控件(如DDMMYY)的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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