I am having a problem returning records from a table called employees. In the where clause, I am comparing a datetime field with a form variable in 'mm/dd/yy format'.
Where modification_date = '#form.date#'.
In SQL server, the data is being stored in the datetime format. What function do I use with 'Modification_Date' to convert it to the 'mm/dd/yy' format.
Maybe I need to use convert, or CAST along with a style. I don't know -- still learing sql server. Any help and explanation as to what is behind the function would be helpful.
Thanks in advance.
Where modification_date = '#form.date#'.
In SQL server, the data is being stored in the datetime format. What function do I use with 'Modification_Date' to convert it to the 'mm/dd/yy' format.
Maybe I need to use convert, or CAST along with a style. I don't know -- still learing sql server. Any help and explanation as to what is behind the function would be helpful.
Thanks in advance.