title: i have a date and time, i want to conver into a relativeTime like twitter. i tried moment.js but it dost not work
body: <p>I am looking for to convert this date and time to <strong>relative time</strong> like twitter have <strong>ex. 5 sec ago or 1 month ago</strong>.
  I have stored date and time in different column of database.
  i am executing this in <strong>JavaScript</strong>, i tried <strong>Momentjs</strong> but it does not work well or i may not understand its format or flow of work.
  i am little new to javascript, i started learning react a week ago
  from database: </p>
  
  <p>date =>31.03.2019 time=>16:06:05</p>
  
  <p><strong>Thank You For Help.</strong></p>
  
  <p>Success Update :
  Mission was to convert "31.3.2019 19:45:55" this date into a time like twitter or facebook have.</p>
  
  <pre><code>let date = new Date()
  
     var then = request.date +' '+ request.time;
  
   var ms = moment(date,"DD/MM/YYYY HH:mm:ss").diff(moment(then,"DD.MM.YYYY HH:mm:ss"));
    var d = moment.duration(ms);
    var s = Math.floor(d.asHours()) + moment.utc(ms).format(":mm:ss");
    var timeAgo = d.humanize();;
  </code></pre>
  
  <p>In moment we can define the format of date we are passing and with humanize function its easy to get the desire output.
  What i didnt know was the definition of format of date we pass. #NOW I AM CLEAR SIR. 
  Thank You For Helping Everybody. Thank You For Sharing .</p>