title: Moment.js Sql Date Time Conversion with Nodejs
body: <p>i am using nodejs to connect to mySql and connection works.
  while using query such as</p>
  
  <pre><code>SELECT * from someTable
  </code></pre>
  
  <p>i get the required results. But the problem is that i am having 
  a column which stores date is having the given format.
   before sending the data i need this format to be converted and vice versa</p>
  
  <pre><code>file_date : Wed Jan 01 2014 05:34:53 GMT+0530 (IST)
  </code></pre>
  
  <p>This is format i am getting</p>
  
  <p>i am unable to send params with Date in this format from client side
  so i need to convert this data to "DD-MM-YYYY" format.i need this way so that i can pass params in "DD-MM-YYYY"  and fetch data date wise</p>