Hi When i tried to change the date in the TDPFDateTimeComboBox using this code
DPFDateTimeComboBox1.Picker.PickerDate := Now;
The date shown on the combo box is not my current local time. It is 8 hours ahead of me.
Please advise
thanks chris
If I remember right, you have to adjust for GMT.
hi Gordon How do you adjust for GMT? Is there an API to adjust for GMT? Please advise
Im looking at my notes.. I think you have to ..
DPFDatePicker1.PickerDate := GetGMTDateTime(Now) ;
Hi Gordon
Thanks very much for your help. It helps!
Log in to post a comment.
Hi
When i tried to change the date in the TDPFDateTimeComboBox using this code
DPFDateTimeComboBox1.Picker.PickerDate := Now;
The date shown on the combo box is not my current local time. It is 8 hours ahead of me.
Please advise
thanks
chris
If I remember right, you have to adjust for GMT.
hi Gordon
How do you adjust for GMT? Is there an API to adjust for GMT?
Please advise
thanks
chris
Im looking at my notes.. I think you have to ..
DPFDatePicker1.PickerDate := GetGMTDateTime(Now) ;
Hi Gordon
Thanks very much for your help. It helps!
thanks
chris