system
April 20, 2006, 7:34pm
#1
Hi all
This is how it looks like on the server
5/25/2005 12:00:00
after using this
code convert(char(12),AWAR.dbo.tblWARReportDetail.Period,101)
it gives me the format i wanted 2/25/2005 but on the prompt it is not sorted properly.
How can i remove the time stamp and have the date appear sorted at the prompt. thanks
Eljo (BOB member since 2005-08-10)
system
April 20, 2006, 7:58pm
#2
Check out this FAQ from Mark P, which may help.
Nick Daniels (BOB member since 2002-08-15)
system
April 20, 2006, 8:10pm
#3
Thanks nick
i tried that cast(convert(char(12),Period,23) as datetime)
it is parsing ok. but the time stamp remains on the LOV . I am using prompt and how can I just have the sorted date to choose from the prompt. thanks
Eljo
Eljo (BOB member since 2005-08-10)
system
April 20, 2006, 8:36pm
#4
the following link might help you
http://homepage.mac.com/rmetzk/PDF_Files/DateLOVs.pdf
Thanks,
Sree Konduri (BOB member since 2005-07-14)
system
April 24, 2006, 7:07pm
#5
thansk Guptha
How can i convert this code to work for sql server
Select DATEOBJ from
( select distinct
to_char(customer.entry_date,'MM/DD/YYYY') as DATEOBJ
from
customer
)
order by to_date(DATEOBJ,'MM/DD/YYYY')
thanks
Eljo (BOB member since 2005-08-10)