Dates and DateTime Pickers
Posted: Thu Jan 05, 2017 4:50 am
I have a date in signed(8) field with the value of 20160410.
I can convert that field (#WSDWP) to a #STD_DATEX with
Displaying the date on a label works great with
However, when I put that date into a DatePicker, the date is 1 day behind even though the debug value is correct.
Getting the date out again works as expected
How do I get the DateTimePicker to display the correct date?
I can convert that field (#WSDWP) to a #STD_DATEX with
Code: Select all
#STD_DATEX := #WSDWP.AsDate( CCYYMMDD )Code: Select all
#WeekLabel := #STD_DATEX.AsDisplayString( MMsDDsCCYY )Code: Select all
#WeekProcessed.Value := #STD_DATEXCode: Select all
#STD_DATEX := #WeekProcessed.Value
#Button1.Caption := #STD_DATEX.AsDisplayString( CCYYMMDD )