This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

How to convert large_integer to date

raduen hamid
Greenhorn

Joined: Jul 07, 2005
Posts: 1
Hallo...
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
 
 
subject: How to convert large_integer to date
 
Similar Threads
How to convert timeStamp into corresponding date.
Casting String / char to self defined class
Converting Date between Java and DB
how to convert String into Date format
Convert sql date to util date