2007년 5월 31일 목요일

VB6 날짜에 관련된 모든것


Dim today As Date;       '오늘 날짜 가져오기
Dim yesterday As Date; '어제 날짜 가져오기

today = Date
yesterdate = Now()  - 1

' 오늘 날짜 출력
MsgBox Month(Today) & Day(Today) & Year(Today)

' 어제 날짜 출력
MsgBox Month(yesterday) & Day(yesterday) & Year(yesterday)

댓글 없음:

댓글 쓰기