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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Date Field Type

Status
Not open for further replies.

gkrenton

MIS
Jul 2, 2003
151
0
0
US
I'm creating a view that uses a field that is in a DATE layout, yet the date field I'm interfacing this data to is in a DATETIME layout.
I can't find anything that explains how to convert a field from a DATE layout to a DATETIME layout.

Any help is appreciated.

Thanks

Gina

 
Use the extend keyword. Given my table c_shiftacc has a column shiftdate of type date:

select extend(shiftdate, year to second) from c_shiftacc

my data displays as such:


2005-06-01 00:00:00
2005-06-01 00:00:00
 
That works! Thanks a ton. Figured it could be done but not obvious in any of the books/manuals I have running around here.

-Gina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top