Re: Date converison by id10t
id10t
Wed May 07 13:31:49 CDT 2008
On May 7, 10:40=A0am, AMercer <AMer...@discussions.microsoft.com> wrote:
> =A0 =A0 =A0 Dim dt0 As New DateTime(1800, 12, 28)
> =A0 =A0 =A0 Dim dt1 As DateTime =3D dt0.AddDays(75736)
>
> dt1 is 5/7/2008. =A0I assume your '5/6/2008' is a typo.
>
>
>
> "id10t error" wrote:
> > I am working with a tps file where the date they use is something like
> > 75736. This number is the number of days since December 28,1800. =A0I
> > know how to get this number with the code below
>
> > =A0 =A0 =A0 =A0 =A0 Dim d As DateTime =3D New DateTime(1800, 12, 28)
> > =A0 =A0 =A0 =A0 MsgBox(DateTime.Today.Subtract(d).Days()) 'returns 75736=
on
> > 5/7/08.
>
> > However, how can i convert the 75736 to 5/6/2008? Thank you for your
> > help- Hide quoted text -
>
> - Show quoted text -
Yes it was a typo. Thank you for your help it worked great.