Sortable Date Time Pattern : Date Time Format « Date Time « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Date Time » Date Time FormatScreenshots 
Sortable Date Time Pattern
 

Imports System
Imports System.Globalization
Imports Microsoft.VisualBasic

Public Class SamplesDTFI

   Public Shared Sub Main()
      Dim myDTFI As DateTimeFormatInfo = New CultureInfo("en-US", False).DateTimeFormat
      Dim myDT As New DateTime(201013)
      Console.WriteLine("        {0} {1}", myDTFI.SortableDateTimePattern, "(SortableDateTimePattern)")
   End Sub
End Class

   
  
Related examples in the same category
1.IFormatProvider Interface Provides a mechanism for retrieving an object to control formatting.
2.Format TimeSpan to string
3.Format TimeSpan to get hours
4.Using different culture to format Date
5.Output date and time using each standard format string
6.Create custom format strings for Date
7.Iterate each standard format specifier and combine them with different cultures
8.Attempt to convert a string in improper ISO 8601 format
9.Assume a date and time string formatted for the fr-FR culture is the local time and convert it to UTC
10.Convert Date to String with format: F
11.Convert Date to String with format: F and fr-FR culture
12.Get the long date formats using the current culture
13.Get the short date formats using the "fr-FR" culture.
14.Get the short date formats using the "fr-FR" culture
15.Attempt to convert a string in improper ISO 8601 format
16.Assume a date and time string formatted for the fr-FR culture is the local time and convert it to UTC
17.Custom Date and Time Format Strings
18.Display the long time pattern and string
19.Display the short date pattern and string.
20.Display the short time pattern and string
21.Short Date Pattern
22.Long Date Pattern
23.Full Date Time Pattern
24.Month Day Pattern
25.RFC1123 Pattern
26.RFC1123 Pattern
27.Short Time Pattern
28.Long Time Pattern
29.Universal Sortable Date Time Pattern
30.Year Month Pattern
31.Output Date in different culture format
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.