Menu

How to change date in TDPFDateTimeComboBox

Chris
2014-06-03
2014-06-12
  • Chris

    Chris - 2014-06-03

    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

     
  • Gordon

    Gordon - 2014-06-04

    If I remember right, you have to adjust for GMT.

     
    • Chris

      Chris - 2014-06-05

      hi Gordon
      How do you adjust for GMT? Is there an API to adjust for GMT?
      Please advise

      thanks
      chris

       
  • Gordon

    Gordon - 2014-06-06

    Im looking at my notes.. I think you have to ..

    DPFDatePicker1.PickerDate := GetGMTDateTime(Now) ;

     
    • Chris

      Chris - 2014-06-12

      Hi Gordon

      Thanks very much for your help. It helps!

      thanks
      chris

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.