To Long Date, Long Time and Universal Time : Date Format « Date Time « VB.Net






To Long Date, Long Time and Universal Time

To Long Date, Long Time and Universal Time
  
Imports System.IO

Module Module1

    Sub Main()
        Dim Dt As DateTime = Now()

        Console.WriteLine("Long date: " & Dt.ToLongDateString)
        Console.WriteLine("Short date: " & Dt.ToShortDateString)

        Console.WriteLine("Long time: " & Dt.ToLongTimeString)
        Console.WriteLine("Short time: " & Dt.ToShortTimeString)

        Console.WriteLine("Universal time: " & Dt.ToUniversalTime)

    End Sub

End Module


           
         
    
  








Related examples in the same category

1.Output time in format: 'h:mm:ss tt'Output time in format: 'h:mm:ss tt'
2.Show Date in different formatShow Date in different format
3.Different Date in dddd and MMMMDifferent Date in dddd and MMMM
4.Assign Date value in format: #5/5/1967 6:41:00 AM#
5.DateTime Format French
6.Is input value a Date
7.Use fr-FR culture, and dates of the form: DDMMYYYY