user3315256
user3315256

Reputation: 11

Insert the current date (format yyyy/mm/dd) into a list box -

I need to insert the date at the end of the following line

lstReport.Items.Add('***** END OF REPORT *****'); 

Upvotes: 1

Views: 1261

Answers (1)

Ken White
Ken White

Reputation: 125748

FormatDateTime would be appropriate:

lstReport.Items.Add('***** END OF REPORT ' +
     FormatDateTime('yyyy/mm/dd', Date) + ' *****') ;

Upvotes: 6

Related Questions