·  VB - Syntax - Variables - Date

 

- Info:

  - This tutorial shows how to create Date and convert it to other Data Types.

  - This info is based on http://www.techotopia.com/index.php/Working_with_Dates_and_Times_in_Visual_Basic.

 

- Procedure:

  - Create VB Application Test.vb

 

    Test.vb

    Sub Main()

    

      'CREATE.------------------------------------------------------------

      Dim dateTime As Date

          dateTime = #8/2/2007#

          dateTime = #1:02:00 PM#

          dateTime = #8/2/2007 1:02:00 PM#

    

      'DISPLAY.-----------------------------------------------------------

      MsgBox (dateTime)

      

    End Sub