0
select to_date('01-MAR-17','DD-MON-YY') from dual
Cœur
  • 37,241
  • 25
  • 195
  • 267
Manoj
  • 1
  • 1
  • 5
    Possibly specify the `nls_language`? If your database (or the connection; unsure) settings aren't set to English, it may not be parsing English month names. – Jon Skeet Oct 20 '17 at 07:34
  • 4
    Better even avoid month names at all. (And two-digit years for that matter.) Use date literals: `select date '2017-03-01' from dual;`. – Thorsten Kettner Oct 20 '17 at 07:51
  • More specifically, [`nls_date_language`](https://stackoverflow.com/q/28211982/266304) - at least if you’re stuck with that string format. If you have a choice though, use date literals or at least month numbers and an unambiguous date format. – Alex Poole Oct 20 '17 at 07:55

0 Answers0