- SQL - How to get Date only

10 views
Skip to first unread message

DaSun

unread,
Aug 10, 2012, 5:45:25 AM8/10/12
to Techකතා
SELECT Customer_Name,Date_of_Birth FROM Customer


me statement eken kohomada date eka witharak aragena pennane Records
wala thiyena

Harshana

unread,
Aug 10, 2012, 12:43:14 PM8/10/12
to tech...@googlegroups.com
in MS SQL Server

SELECT  Customer_Name, DATEADD(dd, 0, DATEDIFF(dd, 0,  Date_of_Birth))  AS 'Date_of_Birth'  FROM Customer 

2012/8/10 DaSun <ds74...@gmail.com>

SELECT Customer_Name,Date_of_Birth FROM Customer


me statement eken kohomada date eka witharak aragena pennane Records
wala thiyena
 

--
Cheers !,
Harshana

Gihan Dawakella

unread,
Aug 10, 2012, 11:59:42 AM8/10/12
to tech...@googlegroups.com
SELECT Date_of_Birth FROM Customer

2012/8/10 DaSun <ds74...@gmail.com>
SELECT Customer_Name,Date_of_Birth FROM Customer



me statement eken kohomada date eka witharak aragena pennane Records
wala thiyena

--
Techකතා SMS Update ලබාගන්න add ලෙස type කොට 0714712774 වෙත SMS කරන්න.

Techකතා Chat room එකට සෙට් වෙන්න http://techkatha.com/chat/
ටෙක්කතා සමූහය සඳහා ආචාර ධර්ම http://www.techkatha.com/rules-and-regulations/

ඔබට මෙම පණිවිඩය ලැබෙන්නේ ඔබ Teckකතා හි සාමාජිකයෙක් බැවිනි.
ලිවීම සඳහා tech...@googlegroups.com වෙත ලියන්න.
Teckකතා හින් ඉවත්වීම සඳහා http://googlegroups.com/group/techkatha/subscribe වෙත යන්න.

වෙබ් අඩවිය http://www.techkatha.com



--
Gihan



Reply all
Reply to author
Forward
0 new messages