Select DatePart(dd, Cast(ColumnName as varChar))
Quote:
|
since i have 3 dropdownlist boxes... it is much easier for user to select dd/month/year rather than typing it
|
Assuming you concatenate the three values into a single string on insert, it's just as easy to convert to a date at the same time.
AND if your column is already a date type the conversion should be done automatically by the server on inserting.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|