带遮罩的文本框中的日期 [英] Date in a textbox with mask

查看:100
本文介绍了带遮罩的文本框中的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法获得带遮罩的文本框来正确存储日期.我使用的是短日期格式00/00/0000,但是当我导航到只有一位数字日期的记录时,它显示不正确. 2008年12月1日显示为12/12/008_

当然可以解决此问题,但找不到.

I'm having trouble getting a masked textbox to properly store a date. I'm using the short date format 00/00/0000 but when I navigate to a record that only has a single digit date it displays incorrectly.
eg. 12/01/2008 displays as 12/12/008_

Surely there's a fix for this but I'm not finding it. Any suggestions?

推荐答案

此控件是否绑定到任何数据源对象?还是您以编程方式分配值?
Is this control bound to any data source object? Or are you assigning the value programatically?


这篇关于带遮罩的文本框中的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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