I have one table with field name DateTime (varchar(30)) and I want to compare this field to the same date and time formate. Below is the ss what I am doing. I am getting some date NULL and date formate returning wrong I want M/D/Y H:i:s but it returns (11/09/19 12:32:40) to 2011-09-19 12:32:40
Can anyone please help me to get right date with DateTime in SQL select query. so, I can compare it.