Unix timestamp creation in java

date, java, time

Solution

`Date.getTime` provides 'number of milliseconds since January 1, 1970, 00:00:00' which is the same as Unix time * 1000.

Problem

Possible Duplicate: Getting unix timestamp from Date() I am having the date ``` Fri, 09 Nov 2012 23:40:18 GMT ``` and how should I convert it to Unix timestamp like this '1352504418' in java

Original source

Related problems