How to convert a particular date into timestamp? : <p>I want to convert a particular date (say 31st October 2017) to the timestamp.</p>

<p>What should be my input and how to convert it into timestamp?</p>
