question

Abdulrahman-3749 avatar image
0 Votes"
Abdulrahman-3749 asked

Change the max and min date in CultureInfo


Is it possible to change the max and min date for in CultureInfo("ar-SA") or any Culture in general ?

this the sample code that change the Culture


Dim CultureInfo As CultureInfo
CultureInfo = New CultureInfo("ar-SA")
CultureInfo.DateTimeFormat.Calendar = New System.Globalization.GregorianCalendar
Thread.CurrentThread.CurrentUICulture = CultureInfo
Application.CurrentCulture = CultureInfo



The date is limited between 30/4/1900 and 13/5/2029 so any advice about how to deal with this limited range
120377-date.png![120354-date.png][2]


dotnet-visual-basic
date.png (4.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers