| |||||||||||||||
DateTime Constructor ( Int32, Int32, Int32, Calendar )System Namespace DateTime Structure Initializes a new instance of the DateTime structure to the specified year, month, and day for the specified Calendar. [ VB ] <Serializable> Public Sub New ( _ ByVal year As Integer, _ ByVal month As Integer, _ ByVal day As Integer, _ ByVal calendar As Calendar _ ) [ C# ] [ Serializable ] public DateTime ( int year, int month, int day, Calendar calendar ); [ C++ ] [ Serializable ] public: DateTime ( int year, int month, int day, Calendar* calendar ); [ JScript ] public Serializable function DateTime ( year : int, month : int, day : int, calendar : Calendar ); Parameters
Exceptions
RemarksThe time of day for the resulting DateTime is midnight ( 00:00:00 ). The allowable values for year, month, and day depend on the specified Calendar. An exception is thrown if the specified date and time cannot be expressed using calendar. The System.Globalization namespace provides several calendars including GregorianCalendar and JulianCalendar. ExampleThe following demonstrates using this constructor.
See AlsoDateTime Members DateTime Constructor Overload List Int32 Calendar |
| ||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme