Search code examples
delphidelphi-7

TDateTimePicker Show Time in Display and Can Edit Time


I'm trying to change the date format to show time ie. yyyy-MM-dd HH:mm:ss

but cannot edit the time

how can I fix this?


Solution

  • Specify your required format using the Format property.

    The other setting that is crucial is that you set the Kind property to dtkTime. Without this change you will not be able to modify the time.