Solved

RAD 2007 - EncodeDateTime()??

Posted on 2009-07-16
2
629 Views
Last Modified: 2013-11-23
Dear Experts,

Don't RAD 2007 have an encodedatetime() and decodedatetime() function?
I only find decodedate() and decodetime() as seperate functions.
I need one function to encode and decode a TDateTime value.
Please advise.

Regards.
0
Comment
Question by:Marius0188
2 Comments
 
LVL 14

Accepted Solution

by:
SteveBay earned 500 total points
Comment Utility
Both  DecodeDateTime, and  EncodeDateTime are found in the DateUtils.pas unit on my RAD 2007
0
 
LVL 6

Expert Comment

by:FactorB
Comment Utility
Have you includes dateutils in Uses clause?
This is how they look,

function EncodeDateTime(const AYear, AMonth, ADay, AHour, AMinute, ASecond,
  AMilliSecond: Word): TDateTime;

procedure DecodeDateTime(const AValue: TDateTime; out AYear, AMonth, ADay,
  AHour, AMinute, ASecond, AMilliSecond: Word);

Regards,
B.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now