Ok, I see from your example that you do need to subtract one from the Month, or 
just use the  .SetDate(date) method which looks even easier. 
Problem solved.


        
                        
'info.Day=d.day
'info.Month=d.Month-1
'info.Year=d.Year
'info.Minute=d.Minute
'info.hour=d.hour
'info.Second=d.Second

 info.SetDate d
                


> On Jan 31, 2016, at 4:53 PM, Michael Diehr <[email protected]> wrote:
> 
> Hi Christian,
> 
> I'm getting some weird results where the Month and Day both seem to be off by 
> one and I'm wondering if the documentation is wrong or I'm doing something 
> wrong?
> 
> Here's my code:
> 
>      dim zi as new ZipFileInfoMBS
>      dim d as date = f.ModificationDate
>      zi.day = d.day
>      zi.month = d.month
>      zi.year = d.year
>      zi.hour = d.hour
>      zi.minute = d.minute
>      zi.second = d.second
> 
> The documentation for ZipFileInfo says that Month, Hour, Minute, and Second 
> are all zero-based, but that Day is 1-based [1..31].
> 
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to