title: How to convert Oracle Next_Day Function to Postgres SQL?
body: <p>Can someone please let me know how to convert the Oracle NEXT_DAY Function to Postgres?</p>
  
  <p>Converted an Oracle Stored Procedure to Postgres function and there is an error while executing the Postgres function in PGADMIN IV as its throwing an error at the below sql ?</p>
  
  <pre><code>SELECT NEXT_DAY(SYSDATE, 'Thursday') FROM DUAL;
  </code></pre>
  
  <p>How can I convert the above Oracle SQL which uses the Oracle Function NEXT_DAY to Postgres?</p>