VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Rem 两个日期间的天数计算
Private Sub Form_Activate()
  a& = DateSerial(2008, 8, 8)     '函数返回值为39668
  b& = DateSerial(2006, 6, 30)    '函数返回值为38898
  Print a, b, a - b               '两日期的天数为770
End Sub

