본문으로 바로가기

asp 날짜 형식 변경

category [ Web 관련 ]/asp 2018. 8. 22. 10:51

<%


response.write "Now() ==> " & Now() & "<br>"

response.write "Date() ==> " & Date() & "<br>"

response.write "Time() ==> " & Time() & "<br>"

response.write "FormatDateTime(Now(), 0) ==> " & FormatDateTime(Now(), 0) & "<br>"

response.write "FormatDateTime(Now(), 1) ==> " & FormatDateTime(Now(), 1) & "<br>"

response.write "FormatDateTime(Now(), 2) ==> " & FormatDateTime(Now(), 2) & "<br>"

response.write "FormatDateTime(Now(), 3) ==> " & FormatDateTime(Now(), 3) & "<br>"

response.write "FormatDateTime(Now(), 4) ==> " & FormatDateTime(Now(), 4) & "<br>"

response.write "-----------------------" & "<br>"

response.write "FormatDateTime(Now(), 2) ==> " & FormatDateTime(Now(), 2) & "<br>"

response.write "FormatDateTime(Now(), 4) ==> " & FormatDateTime(Now(), 4) & "<br>"

response.write "Right(Now(), 3) ==> " & Right(Now(), 3) & "<br>"


response.write "====> " & FormatDateTime(Now(), 2) & " " & FormatDateTime(Now(), 4) & Right(Now(), 3) & "<br>"


%>