title: Moment.Js calculate difference datetime and show result
body: <p>Library moments.js included.
  I have a variable &quot;lastMessage.created_at&quot;
  If it today's date to display then time in the format &quot;h:mm a&quot; if it was yesterday, display &quot;Yesterday&quot; or before that &quot;D.M.Y&quot;, how do I do this ?</p>