M
Mitchell_Collen via AccessMonster.com
Hi,
Will you help me format my datetime date to separate columns. One column for
time, and the other for date. I have used the MSDN site's transact-sql
documents but am still able to produce results.
Here is a typical date value: 06/16/2007 16:17:38
I have tried these:
SELECT CONVERT(datetime, TxDatetime, 126) AS Expr1, CONVERT(datetime,
TxDatetime, 102) AS Expr2, CAST(TxDatetime AS datetime) AS Expr3, DATEPART
(hhmmss, TxDatetime) AS Expr4
FROM dbo.phmPYXHx
I want it to produce this:
expr1 expr2
06/16/2007 16:17:38
Thanks in advance.
Misty
Will you help me format my datetime date to separate columns. One column for
time, and the other for date. I have used the MSDN site's transact-sql
documents but am still able to produce results.
Here is a typical date value: 06/16/2007 16:17:38
I have tried these:
SELECT CONVERT(datetime, TxDatetime, 126) AS Expr1, CONVERT(datetime,
TxDatetime, 102) AS Expr2, CAST(TxDatetime AS datetime) AS Expr3, DATEPART
(hhmmss, TxDatetime) AS Expr4
FROM dbo.phmPYXHx
I want it to produce this:
expr1 expr2
06/16/2007 16:17:38
Thanks in advance.
Misty