asp.net.ph

DateTimeFormatInfo.ShortTimePattern Property

System.Globalization Namespace   DateTimeFormatInfo Class


Sets or retrieves the format pattern for a short time value, which is associated with the 't' format character.

[ VB ]
public Property ShortTimePattern As String

[ C# ]
public string ShortTimePattern {get; set;}

[ C++ ]
public: __property String* get_ShortTimePattern ( );
public: __property void set_ShortTimePattern ( String* );

[ JScript ]
function get ShortTimePattern ( ) : String;
public function set ShortTimePattern ( String );

Property Value

The format pattern for a short time value, which is associated with the 't' format character.

Exceptions


Exception Type Condition
ArgumentNullException The property is being set to a null reference ( Nothing in Visual Basic ).
InvalidOperationException The property is being set and the DateTimeFormatInfo is read-only.

Remarks

See DateTimeFormatInfo for patterns that can be combined to construct custom patterns; for example, "HH:mm".

Example

The below shows the ShortTimePattern used for each of the available cultures.

 Show me 

See Also

DateTimeFormatInfo Members   ShortDatePattern Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note