我如何在asp.net中分享日,月和年? [英] How do I saperate day , month and year in asp.net ?
本文介绍了我如何在asp.net中分享日,月和年?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在asp.net中使用源代码在vb中分享日,月和年值。
请建议我解决方案。
I want to saperate day, month and year values in asp.net with source code in vb.
Please suggest me the solution.
推荐答案
假设日期是DateTime格式,您可以使用
currentDate.Day
,<$来获取日期,月份和年份c $ c> currentDate.Month 和currentDate.Year
Assuming the date is in DateTime format, you can get the date, month and year by using
currentDate.Day
,currentDate.Month
andcurrentDate.Year
这篇关于我如何在asp.net中分享日,月和年?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文