I need a method to convert .NET Date in Java Date, currently if I try to convert this date retrieved from SharePoint 2010 with json:
/Date(-2209161600000)/
CONVERSION TEST:
String input = "/Date(-2209161600000)/";
Date date = new Date(Long.parseLong(input.substring(6,input.length()-2)));
I obtain:
Sat Dec 30 01:00:00 CET 1899
What is the current way in order to convert the .net date? What are the long milliseconds to add (or subtract) in order to obtain the java milliseconds?