How to keep seconds from being included in the display when
using TDateTimePicker?



How to keep seconds from being included in the display when using TDateTimePicker?..

Answer / Shubham Goel

In Delphi, you can use the `FormatString` property of the TDateTimePicker component to format the date and time displayed. To exclude seconds, set the FormatString to 'dd MMM yyyy HH:nn'. Here's an example:

```delphi
MyDateTimePicker.FormatString := 'dd MMM yyyy HH:nn';
```

In this example, 'nn' represents minutes without seconds.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to Open an explorer window to a given folder?

1 Answers  


How to Hide the windows taskbar?

1 Answers  


How to create an example of your problem for Borland Developer Support?

1 Answers  


How to Detect what direction a printer will rotate for a portrait ?

1 Answers  


How to Trapp non client areas ?

1 Answers  


How to retrieve a list of assigned properties ?

1 Answers  


Where to get TUpdateSQLProvider component ?

1 Answers  


How does inheritance operate when using the object of the classes?

1 Answers  


Does Kylix support ODBC?

1 Answers  


How to keep seconds from being included in the display when using TDateTimePicker?

1 Answers  


When I try to execute sql query from delphi7 it throws the following exception ORA-01704: string literal too long. I know the reason why its throwing this exception. My problem is.... I have catched this exception throw Try.... Except block.....In except block i am performing rollback..... due to above error its also throwing exception in rollback transaction...........due to rollback exception...........it had created some problem in connection...........every time when i try to open or close a connection it throws an exception " Operation is not allowed when the object is open"

1 Answers  


How to debug an Apache Shared Module?

1 Answers   CBS,


Categories