<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>爱周末 &#187; 日期补零</title>
	<atom:link href="http://zhoumo123.cn/tag/%e6%97%a5%e6%9c%9f%e8%a1%a5%e9%9b%b6/feed" rel="self" type="application/rss+xml" />
	<link>http://zhoumo123.cn</link>
	<description>知识分享，共同进步。zhoumo123.cn</description>
	<lastBuildDate>Thu, 07 Nov 2019 05:53:49 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.1</generator>
	<item>
		<title>vbscript 如何改变日期格式（月份天数补零）</title>
		<link>http://zhoumo123.cn/asp/282.html</link>
		<comments>http://zhoumo123.cn/asp/282.html#comments</comments>
		<pubDate>Wed, 27 Aug 2014 08:54:54 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[日期补零]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=282</guid>
		<description><![CDATA[输出日期很常见，日期的格式根据情况也有多种，系统去掉了0，如何日期补零实现月份、天数两位数？如20140101 可参考下面方法： getY=year(date()) getM=month(date()) getD=day(date()) if len(getM) = 1 then getM = &#8220;0&#8221; &#38; getM end if if len(getD) = 1 then getD = &#8220;0&#8221; &#38; getD end if response.Write getY&#38;getM&#38;getD &#8216;输出格式 20140 ...  <a href="http://zhoumo123.cn/asp/282.html">  阅读全文 </a>]]></description>
				<content:encoded><![CDATA[<p>输出日期很常见，日期的格式根据情况也有多种，系统去掉了0，如何日期补零实现月份、天数两位数？如20140101 可参考下面方法：</p>
<p>getY=year(date())<br />
getM=month(date())<br />
getD=day(date())<br />
if len(getM) = 1 then getM = &#8220;0&#8221; &amp; getM end if<br />
if len(getD) = 1 then getD = &#8220;0&#8221; &amp; getD end if</p>
<p>response.Write getY&amp;getM&amp;getD &#8216;输出格式 20140101<br />
response.Write getY&amp;&#8221;-&#8220;&amp;getM&amp;&#8221;-&#8220;&amp;getD &#8221;输出格式 2014-01-01</p>
<p>实现补零后，可根据自己情况输出。</p>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/asp/282.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
