<%
if CInt(Left(FormatDatetime(now(),vbShortTime),2))>12 then
response.write "下午"
else
response.write "上午"
end if
%>
if CInt(Left(FormatDatetime(now(),vbShortTime),2))>12 then
response.write "下午"
else
response.write "上午"
end if
%>
<%
If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then
response.write "上午"
Else
response.write "下午"
End If
%>
If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then
response.write "上午"
Else
response.write "下午"
End If
%>
如需要显示英文日期:
current time is 3:34 AM
today is June 15th, 2006
问题:
6th,April,1978
April,6th,1978
哪个是正确的?
答案:
6th,April,1978
April 6th,1978
April 6,1978 都正确
英文日期分英式和美式,如下:
1) 8th March,2004 或8 March,2004(英式)
2) March 8th,2004 或March 8,2004 (美式)
关于日期的写法,应注意以下几点:
①年份必须完全写明,不可用"04代替2004;
②月份必须用英文拼出或采用公认的简写,即 January (Jan.),February (Feb.),March(Mar.)...
阅读全文…
current time is 3:34 AM
today is June 15th, 2006
问题:
6th,April,1978
April,6th,1978
哪个是正确的?
答案:
6th,April,1978
April 6th,1978
April 6,1978 都正确
英文日期分英式和美式,如下:
1) 8th March,2004 或8 March,2004(英式)
2) March 8th,2004 或March 8,2004 (美式)
关于日期的写法,应注意以下几点:
①年份必须完全写明,不可用"04代替2004;
②月份必须用英文拼出或采用公认的简写,即 January (Jan.),February (Feb.),March(Mar.)...
阅读全文…
Javascript 函数
Showdate ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] )
Date:- Javascript date object in the form new Date(), new Date(1982,06,30).
Day:- Day string in the form "dddd" or "ddd".
Month:- Month string in the form "mmmm", "mmm", "mm".
Date:- Date string in the form "dddd", "ddd", "dd", "d".
Year:- Year string in the form "yyyy", "yy".
...
阅读全文…
Showdate ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] )
Date:- Javascript date object in the form new Date(), new Date(1982,06,30).
Day:- Day string in the form "dddd" or "ddd".
Month:- Month string in the form "mmmm", "mmm", "mm".
Date:- Date string in the form "dddd", "ddd", "dd", "d".
Year:- Year string in the form "yyyy", "yy".
...
阅读全文…
1