我在验证日期时遇到问题 [英] I have a problem in validating date
本文介绍了我在验证日期时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在MFC中将日期验证为yyyy-mm-dd格式.
I want to validate date as yyyy-mm-dd format in MFC. Is there any function?
推荐答案
您可能正在寻找以下功能:
最终的工具箱蒙版编辑 [屏蔽的编辑控件 [
You are probably looking for this:
The Ultimate Toolbox Masked Edit[^]
Masked Edit Control[^]
开始 ^ ],有很多相关功能.
Start here[^], there are lots of related functions.
首先,您必须使用Format格式化日期()方法,您可以对其进行验证.
谢谢
ganesh_IT
First you have to format your date using Format() method and you can validate it.
Thanks
ganesh_IT
这篇关于我在验证日期时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文