ASP分页和日期格式化为RFC822格式的办法分享


计算分页,嘿嘿一次搞定不用判断

以下为引用的内容:
intNumPage = Abs(Int(-(intNumRecord/intPerPage))) 

 
将日期格式化为RFC822格式,以前的方法麻烦哦,看这个简单的

以下为引用的内容:
Function DateToRFC822(byVal dtaVal)
    Dim strCurLocale : strCurLocale = GetLocale()
    SetLocale(“en-gb”)
    dtaVal = CDate(dtaVal)
    DateToRFC822 = WeekdayName(Weekday(dtaVal),True)&”,”&_
                   Right(“0″&Day(dtaVal),2)&” “&_
                   MonthName(Month(dtaVal),True)&” “&_
                   Year(dtaVal)&” “&_
                   Right(“0″&Hour(dtaVal),2)&”:”&_
                   Right(“0″&Minute(dtaVal),2)&”:”& _
                   Right(“0″&Second(dtaVal),2)&” “& _
                   ” +0800″
    SetLocale(strCurLocale)
End Function 

—-想了解更多的linux相关异常处理怎么解决关注<计算机技术网(www.ctvol.com)!!>



本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/htmltutorial/74263.html

(0)
上一篇 2020年4月19日
下一篇 2020年4月19日

精彩推荐