VERSION 5.00
Begin VB.Form Form5 
   Caption         =   "Form5"
   ClientHeight    =   2565
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form5"
   ScaleHeight     =   2565
   ScaleWidth      =   4680
   StartUpPosition =   1  'CenterOwner
   Begin VB.TextBox textOwner 
      Height          =   375
      Left            =   1560
      TabIndex        =   4
      Text            =   "test"
      Top             =   360
      Width           =   2535
   End
   Begin VB.TextBox textExpiryDate 
      Height          =   375
      Left            =   1560
      TabIndex        =   2
      Text            =   "2099-12-31T23:59:59"
      Top             =   1080
      Width           =   2535
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   2520
      TabIndex        =   1
      Top             =   1680
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   495
      Left            =   960
      TabIndex        =   0
      Top             =   1680
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "持有人："
      Height          =   375
      Index           =   1
      Left            =   480
      TabIndex        =   5
      Top             =   360
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "失效时间："
      Height          =   375
      Index           =   0
      Left            =   360
      TabIndex        =   3
      Top             =   1080
      Width           =   975
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Public result As Integer

Private Sub Command1_Click()

result = 1
Me.Hide


End Sub

Private Sub Command2_Click()

Me.Hide

End Sub

Private Sub Form_Load()
result = 0

Dim endDate As Date
endDate = DateAdd("d", 1, Now())

textExpiryDate.Text = Format(DatePart("yyyy", endDate), "0000") & "-" & _
    Format(DatePart("m", endDate), "00") & "-" & _
    Format(DatePart("d", endDate), "00") & "T" & _
    "12:00:00.000+08:00"
    
    
End Sub




