A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
How to convert large_integer to date
Joined: Jul 07, 2005
Jul 07, 2005 02:43:00
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
Joined: Jan 29, 2003
Jul 09, 2005 17:52:00
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
It is sorta covered in the
JavaRanch Style Guide
subject: How to convert large_integer to date
how to convert String into Date format
Convert sql date to util date
Casting String / char to self defined class
How to convert timeStamp into corresponding date.
Converting Date between Java and DB
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013