?
Solved

Getting date in delphi in format: 20050415143115

Posted on 2005-04-15
1
Medium Priority
?
194 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:hibbidiji
1 Comment
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 1000 total points
ID: 13795614
var
  s:string;
begin
  s:=FormatDateTime('yyyymmddhhnnsszzz', Now);
  ShowMessage(s)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question