Joined: 14 Apr 2008
Location: United States
Online Status: Offline
Posts: 11
Topic: Converting a datetime field to date format Posted: 17 Apr 2008 at 9:28pm
Greetings,
I have a field that is using datetime datatype. I have gone into Format Field and adjusted so the output only shows the date, and not the time. However, after I export the report results to Excel, this particular date field does only show the date in the cells (which is how I want it). But, if you highlight a cell, then it shows both the date and the time in the cell edit box. This makes it difficult when I do sorting because I only want to have to deal with the date - not the time.
I do not want to convert the datetime field to a string in Excel. I want it to remain a date, but not date and time.
Is there some sort of conversion that I can run on the datetime field to accomplish this?
Also, does anyone know the formula to use in a SQL stored procedure or the query analyzer to accomplish this?
Joined: 14 Apr 2008
Location: United States
Online Status: Offline
Posts: 11
Posted: 20 Apr 2008 at 8:55pm
Hilfy,
Thanks for the Date conversion info. I entered it into a formula field and it worked great. So, now only the date shows up when imported into Excel. This is exactly what I was looking for.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum