Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date format in the select statement

Status
Not open for further replies.

Elroacho

Programmer
Apr 19, 2004
59
NZ
Hi,

I'm trying to write a simple select statement that includes a date, however I want to drop the time do all I get in the record set is dd/mm/yyy.

Any ideas?

Cheers in advance
 
What version of InterBase?

If IB6 and up, try CAST(mytimestampfield AS DATE) in a Dialect 3 database.



--
With regards,

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL Server
Upscene Productions

Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, Oracle, MySQL & MS SQL Server
 
Hi,

I am working with IB7. I have used the cast function but set it as string(11) which chops of the time. This is very crude I know but that's what the documentation told me to do! However 'said' documentation is for v5 so I will try your suggestion when I get the chance.

Cheers,
Kevin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top