Trouble understanding how to use TDateTime / FormatString in C++ builder

Sparksandall
Sparksandall used Ask the Experts™
on
Hi all,

I'm having difficulty understanding how I can show the date and time as a label caption (or 2). I know this is probably a very simple exercise but I'm still learning how to use Borland C++ builder and I've spent hours trying different things without success. I'm trying to use TDateTime with FormatString

I'd like to show the date and time as follows:

Monday 05 June 2012            00:00:00 am/pm

Can anybody help me?

Thank you
Ivan
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Commented:
Take a loot at http://www.functionx.com/cppbuilder/topics/datetime.htm which quite comprehensively expains a the aspects of TDateTime, incuding code sampes.

Author

Commented:
Wow!! I thought I'd found every article out there but this one has really helped me


Thanks for your help
Ivan

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial