GregorianDateIsValid Method  | 
 
            Indicates whether the date values provided are a valid representation of a date and time.
            
 
    Namespace: 
   AGI.Foundation.Time
    Assembly:
   AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static bool IsValid(
	int year,
	int month,
	int day,
	int hour,
	int minute,
	double second
)
Public Shared Function IsValid ( 
	year As Integer,
	month As Integer,
	day As Integer,
	hour As Integer,
	minute As Integer,
	second As Double
) As Boolean
public:
static bool IsValid(
	int year, 
	int month, 
	int day, 
	int hour, 
	int minute, 
	double second
)
static member IsValid : 
        year : int * 
        month : int * 
        day : int * 
        hour : int * 
        minute : int * 
        second : float -> bool 
Parameters
- year
 - Type: SystemInt32
The year. - month
 - Type: SystemInt32
The month of the year, in the range 1 through 12. - day
 - Type: SystemInt32
            The day of the month, in the range 1 through the number of days in month.
             - hour
 - Type: SystemInt32
The hour, in the range 0 through 23. - minute
 - Type: SystemInt32
The minute, in the range 0 through 59. - second
 - Type: SystemDouble
            The second, including fractional seconds,
            in the range 0.0 up to, but not including, 61.0.
            A second between 60.0 and 61.0 (a leap second) is only valid
            if the overall time is during one of the official leap seconds.
             
Return Value
Type: 
Booleantrue if the representation is valid and false if it is not.
See Also