STL equivalent of Brland's FormatDatTime function

G

Guest

Is there a STL (standard template library), std equivalent of the
"FormatDateTime" function?
Can you show how to convert following code into Borland C++ Builder
independed C++ code?

AnsiString S = "The meeting is on ";
S = S + FormatDateTime("dddd, mmmm d, yyyy ' at ' hh:mm AM/PM", Now() +
0.125);
 
V

Victor Bazarov

Lion said:
Is there a STL (standard template library), std equivalent of the
"FormatDateTime" function?
Can you show how to convert following code into Borland C++ Builder
independed C++ code?

AnsiString S = "The meeting is on ";
S = S + FormatDateTime("dddd, mmmm d, yyyy ' at ' hh:mm AM/PM", Now() +
0.125);

Take a look at 'strftime' function and at 'std::time_put' class.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,665
Latest member
salkete

Latest Threads

Top