Getting date in delphi in format: 20050415143115

I need to build a string that has the date in format:

2005 04 15 14 31 15 (20050415143115)

This is Y-m-d-h-m-s-ms

How would I do this?

Thanks
LVL 1
hibbidijiAsked:
Who is Participating?
 
BlackTigerXConnect With a Mentor Commented:
var
  s:string;
begin
  s:=FormatDateTime('yyyymmddhhnnsszzz', Now);
  ShowMessage(s)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.