Re: Convert Numeric field to Date field
- From: "Bob Butler" <tiredofit@xxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 17:46:45 -0800
"DorkyGrin" <DorkyGrin@xxxxxxxxx> wrote in message
news:1169169137.628134.128380@xxxxxxxxxxxxxxxxxxxxxxxxxxx
I've got a situation where there is Numeric data coming into a program
from an older database. The field in question is a numeric field that
is returning this: "51217.00"
That number represents Dec 17, 2005.
Single digit months look like this: 40116.00 indicating Jan 16, 2004.
I need to convert that field into a new field that is defined as a
DATE field.
Ultimately, with the date field, I'd like it to be formatted like
this: 12/17/2005
Anybody got any hints?
d=51217
?format$(cdate(format$(20000000+d,"0000-00-00")),"mm/dd/yyyy")
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
.
- References:
- Convert Numeric field to Date field
- From: DorkyGrin
- Convert Numeric field to Date field
- Prev by Date: Re: Display file properties from VB?
- Next by Date: Re: Convert Numeric field to Date field
- Previous by thread: Convert Numeric field to Date field
- Next by thread: Re: Convert Numeric field to Date field
- Index(es):
Relevant Pages
|