title: Replace date with x format php
body: <p>I have a sql query stored in database i want to make it as generic command 
  so, for example </p>
  
  <pre><code>select a,b,c 
  from table 
  where b 
      between 13-08-1998 
      and 14-09-1998 
  </code></pre>
  
  <p>which should be converted to </p>
  
  <pre><code>select a,b,c 
  from table 
  where b 
      between xx-xx-xxxx 
      and xx-xx-xxxx. 
  </code></pre>
  
  <p>I will store this command and retrieve it to create a query.</p>