Name

DateTimeFormatInfo

Synopsis

This class defines how DateTime values are formatted for a culture. Several standard patterns are defined with the default property values. These standard patterns are designated by a format character. The format character provides a shortcut to specify the format of a DateTime with the ToString() method. You can create custom formats using a set of format pattern characters. These characters represent different styles of day and time representations and allow you to build customized pattern strings. To create custom patterns, first you need to construct a writable instance of DateTimeFormatInfo by using its constructor. Use InvariantInfo to fetch a culture-independent, read-only instance of this class.

Public NotInheritable Class DateTimeFormatInfo : Implements ICloneable, IFormatProvider
' Public Constructors
   Public Sub New() 
' Public Shared Properties
   Public Shared ReadOnly Property CurrentInfo As DateTimeFormatInfo  
   Public Shared ReadOnly Property InvariantInfo As DateTimeFormatInfo  
' Public Instance Properties
   Public Property AbbreviatedDayNames As String()  
   Public Property AbbreviatedMonthNames As String()  
   Public Property AMDesignator As String  
   Public Property Calendar As Calendar  
   Public Property CalendarWeekRule As CalendarWeekRule  
   Public Property DateSeparator As String  
   Public Property DayNames As String()  
   Public Property FirstDayOfWeek As DayOfWeek  
   Public Property FullDateTimePattern As String  
   Public ReadOnly Property IsReadOnly As Boolean ...

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.