Re: convert date from VB to java



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

.



Relevant Pages

  • Re: convert date from VB to java
    ... >> I need to read files written by a VB program with java. ... >> in the header are dates and pointers to text in the rest of the file. ... I cannot interpret the eight bytes for a date data type, ...
    (microsoft.public.vb.general.discussion)
  • convert date from VB to java
    ... I need to read files written by a VB program with java. ... fixed length header then a variable length portion. ... are dates and pointers to text in the rest of the file. ... able to read and interpret the pointers and strings. ...
    (microsoft.public.vb.general.discussion)
  • Re: convert date from VB to java
    ... >>> I need to read files written by a VB program with java. ... >>> have a fixed length header then a variable length portion. ... With java I've been able to read and interpret the pointers ... > NextExecuteTime As Date 008-015 ...
    (microsoft.public.vb.general.discussion)
  • Re: Cpp Considered Harmful
    ... >> I will observe that many Java IDEs do this rather successfully. ... > Look, if a tool author is willing to fully parse the underlying language, ... > compiler version. ... mentions a header file is in the C compatability appendix. ...
    (comp.lang.cpp)
  • Re: Add a header line with postfix
    ... a header issue that a java application is giving me. ... always POPing from a single mailbox, or could it POP from various ... if you just want to add a header when you know the ... the $recipient must be the recipient, so that the application can treat ...
    (Debian-User)