title: Unable to convert varchar2 to Date in oracle
body: <p>I am trying to convert one of the varchar2 column to date in oracle using      the below query. </p>
  
  <pre><code>SELECT *
  FROM login
  WHERE to_date(END_DATE,'DD-MM-YY') &lt; to_date(TRUNC(SYSDATE)-90,'DD-MM-YY');
  </code></pre>
  
  <p>I am converting the both side to date with a common formatter. But  still I am getting the below error while executing this query.</p>
  
  <pre><code> ORA-01861: literal does not match format string
    01861. 00000 -  "literal does not match format string"
   *Cause:    Literals in the input must be the same length as literals in
         the format string (with the exception of leading whitespace).  If the
         "FX" modifier has been toggled on, the literal must match exactly,
         with no extra whitespace.
   *Action:   Correct the format string to match the literal
  </code></pre>
  
  <p>Can you please help me to sort out this problem?</p>