首页 | 免费域名 | 个人服务器 | 一流信息监控拦截系统 | 虚拟主机知识库 | ASP 空间 | ASP技术大全 | 下载中心 | 客户服务中心
  7i24 > ASP技术大全 > 代码乐园 >
    7i24 .Com  
  获取服务器的当前日期函数,返回的日期格式为"YYYY-MM-DD"

7i24.Com不停为您服务
获取服务器的当前日期函数,返回的日期格式为"YYYY-MM-DD"

作者: xiaohe
本函数用于将获取服务器的当前日期,返回的日期格式为"YYYY-MM-DD"
'---------------------------------------------------------------------------
Function AHshGetServerCurrentDate
Dim strTmp, iYear,iMonth,iDate

iYear = Year(Date)
iMonth = Month(Date)
iDate = Day(Date)

strTmp = CStr(iYear) & "-"
If iMonth < 10 Then
strTmp = strTmp & "0" & Cstr(iMonth) & "-"
Else
strTmp = strTmp & Cstr(iMonth) & "-"
End If
If iDate < 10 Then
strTmp = strTmp & "0" & Cstr(iDate)
Else
strTmp = strTmp & Cstr(iDate)
End If
AHshGetServerCurrentDate = strTmp
End Function


  2002年1月9日  阅读 1105 次  发送此页给朋友  来源:    版权争议  删除

相关文章:   近期热点:

上一篇: Retrieve the NT user name
下一篇: 检查指定Text输入框的值是否是数值型数据
返回上一层...
搜索:

(C)2004-2022 7i24.Com 保留所有权利