Thanks guys. I couldn't remember the formatting for the timestamp() function. That cleaned up my issue. Thanks a bunch.

/b;

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of McGovern, Sean
Sent: Thursday, January 20, 2011 10:12 AM
To: Midrange Systems Technical Discussion
Subject: RE: SQL Function / Statement to convert to timestamp

Just use...

select timestamp(mydate , mytime) from myfile



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Brian Piotrowski
Sent: 20 January 2011 14:48
To: Midrange Systems Technical Discussion
Subject: SQL Function / Statement to convert to timestamp

Hi All,

Does anyone happen to have an SQL function handy that will take separate
date and time fields and convert them to a timestamp? I have some web
pages that need to access a specific date and time range (ie: 01/20/2011
06:00:00 to 01/21/2011 02:00:00), and I'm having a bit of a time trying
to get the system to return data when they are split in two separate
fields.

I'd love to convert the field to a timestamp, but it would involve a lot
of recompiling of other programs.

Thanks.

/b;

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Assistant Mgr. - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Fx: 705-435-5029
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
http://www.simcoeparts.com

Please consider the environment. Don't print this e-mail unless you
really need to.

The information contained in this communication is confidential and
intended only for the use of those to whom it is addressed. If you have
received this communication in error, please notify me by telephone
(collect if necessary) and delete or destroy any copies of it. Thank
you!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.