从单独的日,月和年建立新日期以在表单中显示 [英] Build new date from separate day , month and year to display in form
本文介绍了从单独的日,月和年建立新日期以在表单中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
需要按照以下方式在表单中构建日期以显示
1.摘录日从结束日期字段
2.加入月和年字段以生成新的日期
结束日期月份年份|| 显示日期
------------------------------------ --------------------------
2008年1月12日6 2010 | 2010年6月12日
2009年2月16日8 2011 | 2011年8月16日
2012年4月20日5 2013 | 2013年5月20日
新日期将以其他字段的形式显示
a。结束日期
b。月份
c。
也显示在表格上。
请注意
第6个月= Jun
第8个月= 8月
第5个月= 5月
谢谢
[edit]已添加代码块 - OriginalGriff [/ edit]
解决方案
请参阅: http://msdn.microsoft.com/en-us/ library / system.datetime%28v = vs.110%29.aspx [ ^ ]。
说真的。看看构造函数。并且要注意。
祝你好运。
-SA
Need to build date to display in a form by joining it as follows
1. Extract the Day from the End Date field
2. Join it to the Month and Year fields to generate a new date below
End Date Month Year || Date to Display
--------------------------------------------------------------
Jan 12 2008 6 2010 | Jun 12 2010
Feb 16 2009 8 2011 | Aug 16 2011
Apr 20 2012 5 2013 | May 20 2013
The new date will be displayed in the form the other fields
a. End date
b. Month
c. year
are also displayed on the form.
Please note
Month 6 = Jun
Month 8 = Aug
Month 5 = May
Thanks
[edit]Code block added - OriginalGriff[/edit]
解决方案
Please see: http://msdn.microsoft.com/en-us/library/system.datetime%28v=vs.110%29.aspx[^].
Seriously. And look at the constructors. And do pay some attention.
Good luck.
—SA
这篇关于从单独的日,月和年建立新日期以在表单中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文