Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread DateToAnsiStr
Thu, Sep 22 2011 6:34 AMPermanent Link

Petter Topp

Hi.

I have previously used this method to convert local DateTime for a
SQL/Filterstring, but can't find any info on which unit it is.
Anyone who know where this method is?

Petter
Thu, Sep 22 2011 6:59 AMPermanent Link

Petter Topp

I just used FormatDateTime(yyyy-mm-dd, MyDate)

Petter

"Petter Topp"  skrev i nyhetsmeldingen:
17E8A224-F299-47A6-AD81-887722EE334F@news.elevatesoft.com ...

Hi.

I have previously used this method to convert local DateTime for a
SQL/Filterstring, but can't find any info on which unit it is.
Anyone who know where this method is?

Petter
Thu, Sep 22 2011 10:09 AMPermanent Link

Malcolm Taylor

Petter Topp wrote:

> I just used FormatDateTime(yyyy-mm-dd, MyDate)
>
> I have previously used this method to convert local DateTime for a
> SQL/Filterstring, but can't find any info on which unit it is.
> Anyone who know where this method is?
>

I have it in SysUtils  (D2010)
Fri, Sep 23 2011 1:56 AMPermanent Link

Ralf Bieber

EDV Dienstleistungen Ralf Bieber

Petter Topp wrote:

> I just used FormatDateTime(yyyy-mm-dd, MyDate)
>

For this situation i use the BDIsam-functions:

Engine.DateToAnsiStr(Date)

Engine.DateTimeToAnsiStr(Now, true)

The 'Engine' have also a lot of other helpfull converting Routines.

Ralf

Fri, Sep 23 2011 3:25 AMPermanent Link

Petter Topp

Great Ralf.

This was elegant.

Thanks
Petter


"Ralf Bieber"  skrev i nyhetsmeldingen: j5he1i.3gc.1@mailsystem.edrb.de ...

Petter Topp wrote:

> I just used FormatDateTime(yyyy-mm-dd, MyDate)
>

For this situation i use the BDIsam-functions:

Engine.DateToAnsiStr(Date)

Engine.DateTimeToAnsiStr(Now, true)

The 'Engine' have also a lot of other helpfull converting Routines.

Ralf
Fri, Sep 23 2011 3:31 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Petter,

<< I have previously used this method to convert local DateTime for a
SQL/Filterstring, but can't find any info on which unit it is. Anyone who
know where this method is? >>

It's in the dbisamtb unit, and is a method of the TDBISAMEngine component:

http://www.elevatesoft.com/manual?action=viewcomp&id=dbisam4&product=d&version=7&comp=TDBISAMEngine

--
Tim Young
Elevate Software
www.elevatesoft.com
Image