显示英文时间的代码

发表于2011-12-21 14:20:35来源于网络

次点击[] [] [] [打印] [关闭窗口] [评论]

欢迎大家加入创想工作室QQ群 网络瘫痪上不了网?电脑出故障?找破解软件?加入创想工作室QQ群,向大神求助,一步解决问题!QQ群号码:326338868[点此获取更多QQ群]

<script type="text/javascript">
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
year=(myyear > 200) ? myyear : 1900 + myyear;
if(myweekday == 0)
weekday=" Sunday ";
else if(myweekday == 1)
weekday=" Monday ";
else if(myweekday == 2)
weekday=" Tuesday ";
else if(myweekday == 3)
weekday=" Wednesday ";
else if(myweekday == 4)
weekday=" Thursday ";
else if(myweekday == 5)
weekday=" Friday ";
else if(myweekday == 6)
weekday=" Saturday ";
if (mymonth==1)
mymonth="Jan.";
else if (mymonth==2)
mymonth="Feb.";
else if (mymonth==3)
mymonth="Mar.";
else if (mymonth==4)
mymonth="Apr.";
else if (mymonth==5)
mymonth="May";
else if (mymonth==6)
mymonth="Jun.";
else if (mymonth==7)
mymonth="Jul.";
else if (mymonth==8)
mymonth="Aug.";
else if (mymonth==9)
mymonth="Sept.";
else if (mymonth==10)
mymonth="Oct.";
else if (mymonth==11)
mymonth="Nov.";
else if (mymonth==12)
mymonth="Dec.";
document.write("Today is "+weekday+", "+mymonth+" "+myday+", "+year);
</script>

相关热词搜索:显示英文时间

© copyright 2002-2024, 22BA.COM All Rights Reserved

网站备案号:粤ICP备19114910号

ChuangXiang Design Studio - WebDesign & Internet Marketing

关于我们业务范围联系我们开心一刻网站地图

QQ群一:326338868QQ群二:78712271

QQ群三:193078177

邮箱:news@22ba.com

地址:深圳市福田区金田路现代国际大厦2606