전공 공부/프로그래밍
asp
Jin Hak
2008. 4. 2. 08:18
<html>
<head>
<title> a </title>
</head>
<body>
<%
Dim diff,id
id = 850210
diff = DateDiff("yyyy","02-10-1985",now)
response.write "내 나이는 :(diff)" & diff + 1 & "<br>"
response.write "내 나이는 (left):" & year(date) - Left(id,2) - 1900 + 1& " "
%>
</body>
</html>