StandardName Property
Collapse the table of content
Expand the table of content

TimeZoneInfo.StandardName Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the localized display name for the time zone's standard time.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public ReadOnly Property StandardName As String

Property Value

Type: System.String
The localized display name of the time zone's standard time.

Version Notes

XNA Framework

 When this property is used in the XNA Framework, it throws a NotSupportedException exception.

The following example defines a method named DisplayDateWithTimeZoneName that uses the IsDaylightSavingTime(DateTime) method to determine whether to display a time zone's standard time name or daylight saving time name.


Private Sub DisplayDateWithTimeZoneName(ByVal outputBlock As System.Windows.Controls.TextBlock, ByVal date1 As Date, ByVal timeZone As TimeZoneInfo)
   outputBlock.Text += String.Format("The time is {0:t} on {0:d} {1}", _
                     date1, _
                     IIf(timeZone.IsDaylightSavingTime(date1), _
                         timeZone.DaylightName, timeZone.StandardName)) + vbCrLf
End Sub


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft