Re: convert date from VB to java
- From: "Jim Mack" <jmack@xxxxxxxxxxxxxxx>
- Date: Fri, 16 Sep 2005 09:25:03 -0400
David McDivitt wrote:
> I need to read files written by a VB program with java. The files
> have a fixed length header then a variable length portion. Contained
> in the header are dates and pointers to text in the rest of the file.
> With java I've been able to read and interpret the pointers and
> strings. I cannot interpret the eight bytes for a date data type,
> though. Help would be appreciated. Thanks
They could be anything, but if they're OLE dates they're double-precision floating point values. The integer portion is the sequential day number since December 30, 1899, and the fractional part is the portion of the day since midnight: 0.25 is 1/4 of a day, or 6AM, etc.
Otherwise, you're going to have to post some data or show us how these are laid out. Give us several examples and, if possible, what dates you think they represent.
--
Jim Mack
MicroDexterity Inc
www.microdexterity.com
.
- Follow-Ups:
- Re: convert date from VB to java
- From: Someone
- Re: convert date from VB to java
- From: David McDivitt
- Re: convert date from VB to java
- References:
- convert date from VB to java
- From: David McDivitt
- convert date from VB to java
- Prev by Date: VERY OT: Web Meetings
- Next by Date: Trapping Mouse Movements in Picture Box
- Previous by thread: convert date from VB to java
- Next by thread: Re: convert date from VB to java
- Index(es):
Relevant Pages
|