asp.net.ph

DateTimeFormatInfo.ShortDatePattern Property

System.Globalization Namespace   DateTimeFormatInfo Class


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

[ VB ]
public Property ShortDatePattern As String

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

[ C++ ]
public: __property String* get_ShortDatePattern ( );
public: __property void set_ShortDatePattern ( String* );

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

Property Value

The format pattern for a short date value, which is associated with the 'd' 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, "MM/dd/yyyy".

This property is affected if the value of the Calendar property changes.

Example

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

 Show me 

See Also

DateTimeFormatInfo Members   ShortTimePattern 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