根据范围打印所有日期 [英] Print all dates based on range
本文介绍了根据范围打印所有日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
我被困在一个我需要打印范围内所有日期的地方。例如,2004年至2009年。
我的输出应该像2004,2005,2006,2007,2008,2009。
Dear all,
I am stuck at a place where i need to print all the dates existing in a range. For eg., 2004 to 2009.
My output should be like 2004, 2005, 2006, 2007, 2008, 2009.
推荐答案
哦亲爱的...
你需要学到这么多......
我不知道你想要做什么,但看起来你需要使用对于...下一步 [ ^ ]循环。
Oh Dear...
You need to learn so much...
I don''t know what you exact want to do, but it looks like you need to use For...Next[^] loop.
Dim i as Integer = 0
For i = 2004 to 2009
Msgbox (i.ToString())
Next
这篇关于根据范围打印所有日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文