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

UDAY convert question

Status
Not open for further replies.

EBee

MIS
Aug 10, 2001
229
US
I have a oracle database with a number(12) type field that is storing date this way 1020131 as a YYYMMDD format

how can i change this to 01/31/02 format in Access97 query

thanks
erwin
 
You can use...

select
format(FieldName, "Short Date")
from
TableName

or

select
format(FieldName, "mm/dd/yy")
from
TableName
 
I tried what you suggested and did not work, the field is a number type and the format is YYYMMDD.

what else can i try. . how about to_char. . does this work in access query

erwin
 
No but the function in Access to convert it to text would be CStr, to date would be CDate- I'd try CDate first. Sorry I've never played with Oracle a little Informix-Which has a to_char and to_date function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top