I retrieve a date from a record that is in the BD and it brings me in this format "07/01/2016 05:43:10 pm", then I compare that date to make a condition to update my record since it is the only field that can be different for all the other records of my BD, I can not modify the design of the table, I can only make use of the records, that date format is bringing me problems since the format of the date of my BD is "2016-01-07 17: 43: 11.790", so I tested my update from SQL Server and the "pm" is the problem you are not updating, how could you remove the "p.m.", and use
Dim fechaCompara = Convert.ToDateTime(Request.Form("txtFechaa"))
and still bringing "07/01/2016 05:43:10 p.m.", use VB.NET