Converting JAVA date to Epoch

2
To do a custom XPath retrieve from Java I have to convert a DateTime attribuut to it's epoch value. Who can help we with the code?
asked
1 answers
2
public static long DateTimeToLong(Date date)
{
    return date.getTime();
}

That all.

answered