SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     Android (3)
     Linux (1)
     MacOS (1)
     OS (1)
     Solaris10 (15)
     Windows (1)
     Windows Server (2)
     Windows XP (3)
   ID  
   Password  
  |  
  Location United States
  IP Address 3.12.36.30
2024. 05
12
3
4
567891011
12131415161718
19202122232425
262728293031
Category  Languages, ASP
Writer 김태우 Date 2012-05-31 11:34:19 Visit 8868
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