title: Typescript TypeError: ......toDateString is not a function
body: <p>I am new to typescript and this might be something very trivial. Please help.</p>
  
  <p>I am trying to extract minutes and seconds from typescript Date variable.
  I have a variable timestamp declared as Date. But when I try to use functions on it like toDateString() or getMinutes() or getTime(), I get the above error saying TypeError: timestamp.getMinutes() is not a function. </p>
  
  <p>Thanks.</p>