File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes How to convert large_integer to date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to convert large_integer to date" Watch "How to convert large_integer to date" New topic

How to convert large_integer to date

raduen hamid

Joined: Jul 07, 2005
Posts: 1
When i read a Active Dir user properties the lastlogon field is a LARGE_INTEGER, how can i convert this to a readable date/time formaat
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
LARGE_INTEGER isn't a Java type. Are you getting this from JNI to C++ or something? If the Java type is long there is a date constructor using a long.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: How to convert large_integer to date
It's not a secret anymore!