| |||||||||||||||
DateTime Constructor ( Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar )System Namespace DateTime Structure Initializes a new instance of the DateTime structure to the specified year, month, day, hour, minute, second, and millisecond for the specified Calendar. [ VB ] <Serializable> Public Sub New ( _ ByVal year As Integer, _ ByVal month As Integer, _ ByVal day As Integer, _ ByVal hour As Integer, _ ByVal minute As Integer, _ ByVal second As Integer, _ ByVal millisecond As Integer, _ ByVal calendar As Calendar _ ) [ C# ] [ Serializable ] public DateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar ); [ C++ ] [ Serializable ] public: DateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar* calendar ); [ JScript ] public Serializable function DateTime ( year : int, month : int, day : int, hour : int, minute : int, second : int, millisecond : int, calendar : Calendar ); Parameters
Exceptions
RemarksThe 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