title: Delphi TDateTimePicker issue, "failed to set min/max range"
body: <p>A few users of an app of mine are having a weird issue, on start-up they get an Exception with the datitimepickers which have a predetermined min/max date set to 01 Jan 1950 - 31 Dec 2050.</p>
  
  <p>The default error message thrown by the app is</p>
  
  <blockquote>
    <p>"Error reading time1.Max: Failed to set calendar min/max range."</p>
  </blockquote>
  
  <p>Upon embedding a debugger (madshi's madExcept) I see in the report:</p>
  
  <blockquote>
    <p>"Error reading time1.MaxDate: '23:59:59' is not a valid date and
    time."</p>
  </blockquote>
  
  <p>The object on the form has these properties:</p>
  
  <blockquote>
  <pre><code>            Date = 39773.494141041670000000
              Format = 'MMM yyyy'
              Time = 39773.494141041670000000
              MaxDate = 55153.999988425920000000
              MinDate = 18264.000000000000000000
  </code></pre>
  </blockquote>
  
  <p>Any idea what could be the issue?</p>
  
  <p>Crash data:</p>
  
  <p>main thread ($2b08):</p>
  
  <pre><code>&gt; 0051501b +0a7 app.exe System.Classes 10430   +5 HandleException
  &gt; 00515255 +1f5 app.exe System.Classes 10487  +48 TReader.ReadProperty
  &gt; 00514a65 +015 app.exe System.Classes 10233   +1 TReader.ReadDataInner
  &gt; 00514a47 +067 app.exe System.Classes 10226  +11 TReader.ReadData
  &gt; 0051de05 +001 app.exe System.Classes 15947   +0 TComponent.ReadState
  &gt; 0057d017 +02f app.exe Vcl.Controls    5567   +3 TControl.ReadState
  &gt; 00581481 +025 app.exe Vcl.Controls    8434   +3 TWinControl.ReadState
  &gt; 005148bf +11f app.exe System.Classes 10187  +23 TReader.ReadComponent
  &gt; 00514ad9 +089 app.exe System.Classes 10241   +9 TReader.ReadDataInner
  &gt; 00514a47 +067 app.exe System.Classes 10226  +11 TReader.ReadData
  &gt; 0051de05 +001 app.exe System.Classes 15947   +0 TComponent.ReadState
  &gt; 0057d017 +02f app.exe Vcl.Controls    5567   +3 TControl.ReadState
  &gt; 00581481 +025 app.exe Vcl.Controls    8434   +3 TWinControl.ReadState
  &gt; 00604c4c +028 app.exe Vcl.ExtCtrls   10464   +3
  &gt; TCustomCategoryPanel.ReadState 005148bf +11f app.exe System.Classes
  &gt; 10187  +23 TReader.ReadComponent 00514ad9 +089 app.exe System.Classes
  &gt; 10241   +9 TReader.ReadDataInner 00514a47 +067 app.exe System.Classes
  &gt; 10226  +11 TReader.ReadData 0051de05 +001 app.exe System.Classes 15947
  &gt; +0 TComponent.ReadState 0057d017 +02f app.exe Vcl.Controls    5567   +3 TControl.ReadState 00581481 +025 app.exe Vcl.Controls    8434   +3 TWinControl.ReadState 005c8523 +00b app.exe Vcl.ComCtrls    6207   +1
  &gt; TTabSheet.ReadState 005148bf +11f app.exe System.Classes 10187  +23
  &gt; TReader.ReadComponent 00514ad9 +089 app.exe System.Classes 10241   +9
  &gt; TReader.ReadDataInner 00514a47 +067 app.exe System.Classes 10226  +11
  &gt; TReader.ReadData 0051de05 +001 app.exe System.Classes 15947   +0
  &gt; TComponent.ReadState 0057d017 +02f app.exe Vcl.Controls    5567   +3
  &gt; TControl.ReadState 00581481 +025 app.exe Vcl.Controls    8434   +3
  &gt; TWinControl.ReadState 005148bf +11f app.exe System.Classes 10187  +23
  &gt; TReader.ReadComponent 00514ad9 +089 app.exe System.Classes 10241   +9
  &gt; TReader.ReadDataInner 00514a18 +038 app.exe System.Classes 10220   +5
  &gt; TReader.ReadData 0051de05 +001 app.exe System.Classes 15947   +0
  &gt; TComponent.ReadState 0057d017 +02f app.exe Vcl.Controls    5567   +3
  &gt; TControl.ReadState 00581481 +025 app.exe Vcl.Controls    8434   +3
  &gt; TWinControl.ReadState 0064f15d +06d app.exe Vcl.Forms       3836  +11
  &gt; TCustomForm.ReadState 005159d7 +1d7 app.exe System.Classes 10667  +37
  &gt; TReader.ReadRootComponent 005109c6 +032 app.exe System.Classes  8269  
  &gt; +3 TStream.ReadComponent 0050a37f +057 app.exe System.Classes  3834   +7 InternalReadComponentRes 0050bcbb +05f app.exe System.Classes  3891   +4 InitComponent 0050bd49 +061 app.exe System.Classes  3903   +6 InitInheritedComponent 0064e982 +0c6 app.exe Vcl.Forms       3592  +17
  &gt; TCustomForm.Create 006593da +076 app.exe Vcl.Forms      10407  +13
  &gt; TApplication.CreateForm 008e146e +cce app.exe app       342 +211
  &gt; initialization 74e9919d +00c KERNEL32.DLL                            
  &gt; BaseThreadInitThunk
  &gt; 
  &gt; main thread ($2b08), inner exception level 1:
  &gt; &gt;&gt; EConvertError, '23:59:59' is not a valid date and time 0044d219 +019 app.exe System.SysUtils  5387   +1 ConvertErrorFmt 00453b74 +02c app.exe System.SysUtils 19596   +2 StrToDateTime 005dd4e1 +0f5 app.exe
  &gt; Vcl.ComCtrls    27328   +6 TCommonCalendar.SetMaxDate 004e873d +06d
  &gt; app.exe System.TypInfo   2238   +8
  &gt; {System.TypInfo}TPropSet&lt;System.Double&gt;.SetProc 004e729a +066 app.exe
  &gt; System.TypInfo   3185   +3 SetFloatProp 005155ff +18b app.exe
  &gt; System.Classes  10567  +25 TReader.ReadPropValue 005151f6 +196 app.exe
  &gt; System.Classes  10476  +37 TReader.ReadProperty 00514a65 +015 app.exe
  &gt; System.Classes  10233   +1 TReader.ReadDataInner 00514a47 +067 app.exe
  &gt; System.Classes  10226  +11 TReader.ReadData 0051de05 +001 app.exe
  &gt; System.Classes  15947   +0 TComponent.ReadState 0057d017 +02f app.exe
  &gt; Vcl.Controls     5567   +3 TControl.ReadState 00581481 +025 app.exe
  &gt; Vcl.Controls     8434   +3 TWinControl.ReadState 005148bf +11f app.exe
  &gt; System.Classes  10187  +23 TReader.ReadComponent 00514ad9 +089 app.exe
  &gt; System.Classes  10241   +9 TReader.ReadDataInner 00514a47 +067 app.exe
  &gt; System.Classes  10226  +11 TReader.ReadData 0051de05 +001 app.exe
  &gt; System.Classes  15947   +0 TComponent.ReadState 0057d017 +02f app.exe
  &gt; Vcl.Controls     5567   +3 TControl.ReadState 00581481 +025 app.exe
  &gt; Vcl.Controls     8434   +3 TWinControl.ReadState 00604c4c +028 app.exe
  &gt; Vcl.ExtCtrls    10464   +3 TCustomCategoryPanel.ReadState 005148bf
  &gt; +11f app.exe System.Classes  10187  +23 TReader.ReadComponent 00514ad9 +089 app.exe System.Classes  10241   +9 TReader.ReadDataInner 00514a47 +067 app.exe System.Classes  10226  +11 TReader.ReadData 0051de05 +001 app.exe System.Classes  15947   +0 TComponent.ReadState 0057d017 +02f
  &gt; app.exe Vcl.Controls     5567   +3 TControl.ReadState 00581481 +025
  &gt; app.exe Vcl.Controls     8434   +3 TWinControl.ReadState 005c8523 +00b
  &gt; app.exe Vcl.ComCtrls     6207   +1 TTabSheet.ReadState 005148bf +11f
  &gt; app.exe System.Classes  10187  +23 TReader.ReadComponent 00514ad9 +089
  &gt; app.exe System.Classes  10241   +9 TReader.ReadDataInner 00514a47 +067
  &gt; app.exe System.Classes  10226  +11 TReader.ReadData 0051de05 +001
  &gt; app.exe System.Classes  15947   +0 TComponent.ReadState 0057d017 +02f
  &gt; app.exe Vcl.Controls     5567   +3 TControl.ReadState 00581481 +025
  &gt; app.exe Vcl.Controls     8434   +3 TWinControl.ReadState 005148bf +11f
  &gt; app.exe System.Classes  10187  +23 TReader.ReadComponent 00514ad9 +089
  &gt; app.exe System.Classes  10241   +9 TReader.ReadDataInner 00514a18 +038
  &gt; app.exe System.Classes  10220   +5 TReader.ReadData 0051de05 +001
  &gt; app.exe System.Classes  15947   +0 TComponent.ReadState 0057d017 +02f
  &gt; app.exe Vcl.Controls     5567   +3 TControl.ReadState 00581481 +025
  &gt; app.exe Vcl.Controls     8434   +3 TWinControl.ReadState 0064f15d +06d
  &gt; app.exe Vcl.Forms        3836  +11 TCustomForm.ReadState 005159d7 +1d7
  &gt; app.exe System.Classes  10667  +37 TReader.ReadRootComponent 005109c6
  &gt; +032 app.exe System.Classes   8269   +3 TStream.ReadComponent 0050a37f +057 app.exe System.Classes   3834   +7 InternalReadComponentRes 0050bcbb +05f app.exe System.Classes   3891   +4 InitComponent
  &gt; 0050bd49 +061 app.exe System.Classes   3903   +6
  &gt; InitInheritedComponent 0064e982 +0c6 app.exe Vcl.Forms        3592 
  &gt; +17 TCustomForm.Create 006593da +076 app.exe Vcl.Forms       10407  +13 TApplication.CreateForm 008e146e +cce app.exe app        342 +211 initialization 74e9919d +00c KERNEL32.DLL                             
  &gt; BaseThreadInitThunk
  </code></pre>