Function dayofweek(str)

If Not Isnumeric(str) Then str = weekDay(str)


Select Case cInt(str)

Case 1 : str = "일요일"

Case 2 : str = "화요일"

Case 3 : str = "수요일"

Case 4 : str = "목요일"

Case 5 : str = "금요일"

Case 6 : str = "토요일"

Case 7 : str = "일요일"

End Select


dayofweek = str


End Function



Response.Write dayofweek(now)

Response.Write dayofweek("2018-08-12")

Response.Write dayofweek(weekDay(now))

'ASP' 카테고리의 다른 글

ASP에서 SQL 인젝션(Injection) 방어하기  (0) 2016.11.15
[ASP] BASE64 인코딩(encoding)/디코딩(decoding)  (1) 2016.05.16
ASP NO-CACHE  (0) 2016.03.03
ASP 트랙잭션  (0) 2016.03.03
[ASP] Dext.ImageProc 썸네일 이미지 생성하기  (0) 2016.02.12

+ Recent posts