Re: AW: extract file date in a given format

2007-01-05 Thread T E Schmitz
T E Schmitz wrote: [EMAIL PROTECTED] wrote: I tried : l = new java.lang.Long (millis); d = new java.util.Date(l); This also results in a IllegalArgumentException when creating the Date. What an idiot! It's got to be d = new java.util.Date(l.longValue()); -- Regards/Gruß, Tarlika Elisabe

Re: AW: extract file date in a given format

2007-01-05 Thread T E Schmitz
[EMAIL PROTECTED] wrote: I tried to write a second script but am getting an IllegalArgumentException on "new Date(millis)": Project: public String getProperty(String propertyName) You have to convert the String into a long. I tried : l = new java.lang.Long (millis);

AW: extract file date in a given format

2007-01-04 Thread Jan.Materne
> > > > > > >I also need the date in a human readable format. > >I tried to write a second script but am getting an >IllegalArgumentException on "new Date(millis)": > > > > > > > > Project: public String getProperty(String propertyName) You have to convert