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 |
How to Open an explorer window to a given folder?
How to Hide the windows taskbar?
How to create an example of your problem for Borland Developer Support?
How to Detect what direction a printer will rotate for a portrait ?
How to Trapp non client areas ?
How to retrieve a list of assigned properties ?
Where to get TUpdateSQLProvider component ?
How does inheritance operate when using the object of the classes?
Does Kylix support ODBC?
How to keep seconds from being included in the display when using TDateTimePicker?
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"
How to debug an Apache Shared Module?