I have to create a query where I have to compare a field name which has datetime with current date in my asp page.
"select user_nme,lot_no,space_no,work_phn_no,rec_prcs_dte FROM [agency].[dbo].[auto_park_unassigned_user] where rec_prcs_dte = '"&dte&"'"
here dte = current date (mm/dd/yyyy) and rec_prcs_dte has date and time stamp.
Even though dates are same, I do not get any results because of time stamp in the field. I will have to convert datetime into mm/yy/dd. How do I do that?
I tried but no success. Any help will be appreciated.
"select user_nme,lot_no,space_no,work_phn_no,rec_prcs_dte FROM [agency].[dbo].[auto_park_unassigned_user] where rec_prcs_dte = '"&dte&"'"
here dte = current date (mm/dd/yyyy) and rec_prcs_dte has date and time stamp.
Even though dates are same, I do not get any results because of time stamp in the field. I will have to convert datetime into mm/yy/dd. How do I do that?
I tried but no success. Any help will be appreciated.