hi all,
i have table field name call
Start_date varchar(16)
when i select data from that filed values it gives me
Eg:
select Start_date from Customer
20011224 00:00:0
20011004 00:00:0
but i want to convert this data in to dd/mm/yyyy format ?
like ! 24/12/2001
04/10/2001
how do i do this task ?
regards
sujithf
create table #format (
start_Date_time varchar(16)
)
insert into #format values('20011224 00:00:0')
select convert(varchar(16), cast(start_date_time as datetime), 103) from #format
--103 is a British/French date format "dd/mm/yyyy"
|||thanks very much.....
regards
sujithf
No comments:
Post a Comment