[제나플러스] 현재 날짜,요일을 표시하는 스크립트
페이지 정보
본문
<SCRIPT language="JavaScript">
<!--
var today = new Date();
var day = today.getDay();
var year = today.getYear();
if (year < 2000) year+=1900;
var month = today.getMonth();
var date = today.getDate();
var week;
if (day == 0) week = "Sunday" ;
if (day == 1) week = "Monday" ;
if (day == 2) week = "Tuesday" ;
if (day == 3) week = "Wednesday" ;
if (day == 4) week = "Thursday" ;
if (day == 5) week = "Friday" ;
if (day == 6) week = "Saturday" ;
document.write(""+week +"");
document.write(" / "+ (month+1) + " / " + date + " / "+year+ "");
//현재 날짜,요일을 표시하는 스크립트 -->
</SCRIPT>
<!--
var today = new Date();
var day = today.getDay();
var year = today.getYear();
if (year < 2000) year+=1900;
var month = today.getMonth();
var date = today.getDate();
var week;
if (day == 0) week = "Sunday" ;
if (day == 1) week = "Monday" ;
if (day == 2) week = "Tuesday" ;
if (day == 3) week = "Wednesday" ;
if (day == 4) week = "Thursday" ;
if (day == 5) week = "Friday" ;
if (day == 6) week = "Saturday" ;
document.write(""+week +"");
document.write(" / "+ (month+1) + " / " + date + " / "+year+ "");
//현재 날짜,요일을 표시하는 스크립트 -->
</SCRIPT>
추천0
댓글목록
등록된 댓글이 없습니다.