The format string depends on the current user locale, using the standard short format.
For example, for the date part, the constructor use mm/dd/yyyy for English but dd/mm/yyyy for French locale
Please note that using the Datetime constructor, the maximum allowed value for the year is 9999. If needed, you can change the year to a higher value with an assignment to the year property (which allows a maximum value of 30827)
For example, for the date part, the constructor use mm/dd/yyyy for English but dd/mm/yyyy for French locale
Please note that using the Datetime constructor, the maximum allowed value for the year is 9999. If needed, you can change the year to a higher value with an assignment to the year property (which allows a maximum value of 30827)