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

Converting a DATETIME field from MS SQL to a TRUE Date Time in Excel

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
My DATETIME fields comes out as a TEXT field when the report runs from Webfocus to Excel.

The value in MS SQL is: 2005-05-19 16:22:00.000

When the dates come from Oracle, I use the syntax below to get 20-JUL-2005.

COMPUTE NEWDATE_1/DMYY = HDATE(OLDDATE,'DMYY'); AS 'dfield'

I want to be able to have the time retained, but as a DATETIME field in Excel.

What do I need to change in my syntax?

Thanks,

Leo ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top