>Invalid property value
>
>ldDate = {^2003/07/31} * Note: Assuming your setting would be in Mindate-Maxdate limits * not including a check for it with thisform.dtPicker ltMinDate = .MinDate && Save current min-max dates ltMaxDate = .MaxDate .MinDate = {^1601/01/01 00:00:00} && min control accepts .MaxDate = {^9999/12/31 00:00:00} .Year = 2000 && Known leap year - so all month/day settings are valid .Month = 1 && Jan has 31 days - so all days are valid * Now can set the day/month/year safely in this order .Day = day(ldDate) .Month = month(ldDate) .Year = year(ldDate) .MinDate = ltMinDate && Restore min-max dates of control .MaxDate = ltMaxDate endwithDid I say simple ? So it must be simple :) Another workaround then. DtPicker control uses a datetime value so I can set its value directly rather than setting day,month,year individually :
ldDate = {^2003/07/31} thisform.dtpicker.OBJECT.value = dtot(ldDate)Note that it's .object.value not just .value.