SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     DB (1)
     PDF (1)
     Recording (1)
     Util (2)
     Web (2)
   ID  
   Password  
  |  
  Location United States
  IP Address 18.220.11.34
2024. 04
123456
78910111213
14151617181920
2122232425
26
27
282930
Category  Languages, ASP
Writer 김태우 Date 2012-05-31 11:34:19 Visit 8855
ASP 날짜함수

 

ASP 날짜 함수

 

Date : 현재 날짜

  예제>

    response.write date    결과=> 2012-05-31

Now : 현재 날짜와 시간

  예제>

    response.write now    결과=> 2012-05-31 오전 11:28:18

DateSerial : 특정날짜 계산

  예제>

    전월 마지막 날 구하기

    dateserial( year(date), month(date), 1-1 )

DatePart : 날짜 특정 부분

  예제>

    원하는 날짜의 월

    datepart( "m", dateserial( 2012, 5, 25 )

DateAdd : 날짜 계산

  예제>

    오늘 기준 1달 뒤

    dateadd( "m", 1, date)

DateDiff : 두 날짜의 차이를 계산

  예제>

    두 날짜의 일 차이

    datediff ( "d", date1, date2)

Weekday : 요일

Weekdayname : 요일명

Monthname : 월명

 

Tags  ASP 날짜함수, date, now, dateserial, datepart, dateadd
  Relation Articles
[Languages-ASP] ASP 날짜함수 (2012-05-31 11:34:19)
[Languages-JavaScript] 날짜 비교 (2012-01-19 18:33:30)
[Languages-PHP] PHP 날짜 함수 (2011-09-07 15:18:20)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail