Question : how to extract date from a datetime field

Hi

My question is how to extract only date not time from datetime field ?

Answer : how to extract date from a datetime field

    SELECT convert(varchar, , 102)

this will give you date only in yyyy/mm/dd format. Other formats are possible by changing the "102" to one of a range of other numbers.

Have a look at the convert function in the ASE Reference Manual volume 1, available at:

     http://sybooks.sybase.com/asg1251e.html
Random Solutions  
 
programming4us programming4us