12972.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: 请问如何求得某一个日期过23天是几月几号???</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 请问如何求得某一个日期过23天是几月几号???</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:maxwell@email.gcn.net.tw">Maxwell</a> on May 15, 1999 at 06:22:58:<p>
In Reply to: <a href="12956.html">请问如何求得某一个日期过23天是几月几号???</a> posted by VB新手 on May 14, 1999 at 21:24:21:<p>
: 请问如何求得某一个日期过23天是几月几号???<p>用 DateSerial (年,月,日) 就可以了, 例如<br>1999/5/10 过 23 天:<br>Temp=DateSerial(1999,5,10+23)<p>或者从今天算起加 100 天<br>Temp=DateSerial(Year(Now),Month(Now),Day(Now)+100)<p>喜欢加年加月加日都可以, 反正不管年月日哪个栏位, 超过标准日期数值就会自动转换...<br>传回值是标准的 ISO 日期格式..
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12972-->
</ul><!--end: 12972-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?