T
Tyro
This isn't exactly a Microsoft Access question, but I didn't know where else
to go. I am using Microsoft SQL Server Management Studio. The table and
field name are “dbo.EncounterData.CreateDateTime†The results are formatted
like “2010-03-02 10:36:52.527â€. Would you know how I can use the Convert
function to format the results as “yyyymmddâ€. I know it is something like
one of these:
select (convert (char(8), getdate(), 112)
SELECT CONVERT(VARCHAR(8),CONVERT(DATETIME),112)
but I can't get either one to work.
to go. I am using Microsoft SQL Server Management Studio. The table and
field name are “dbo.EncounterData.CreateDateTime†The results are formatted
like “2010-03-02 10:36:52.527â€. Would you know how I can use the Convert
function to format the results as “yyyymmddâ€. I know it is something like
one of these:
select (convert (char(8), getdate(), 112)
SELECT CONVERT(VARCHAR(8),CONVERT(DATETIME),112)
but I can't get either one to work.