public long CSharpDateTimeMillisToJavaDateMillis(DateTime dateTime)
{
DateTime Jan1st1970 =
new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
long diff =
(long)(dateTime.ToUniversalTime() – Jan1st1970)
.TotalMilliseconds;
return diff;
}