+ Reply to Thread
Results 1 to 4 of 4

How do I change 40402 into 04/04/2002?

  1. #1
    Lannutslp
    Guest

    How do I change 40402 into 04/04/2002?

    I downloaded a database from an AS/400 and now I need to change numbers to
    dates. When I format it changes everything because it is reading the number
    as a julian date.

  2. #2
    George Nicholson
    Guest

    Re: How do I change 40402 into 04/04/2002?

    use DATE(year,month,day)

    first, make it easy on yourslef and make sure all your data is 6 characters
    long, with leading zeros.
    ColumnB = Text(ImportedDataColumn,"000000")

    MyDate = DATE(Right(ColumnB,2), Left(ColumnB,2),Mid(ColumnB,3,2))

    HTH,
    --
    George Nicholson

    Remove 'Junk' from return address.


    "Lannutslp" <[email protected]> wrote in message
    news:[email protected]...
    >I downloaded a database from an AS/400 and now I need to change numbers to
    > dates. When I format it changes everything because it is reading the
    > number
    > as a julian date.




  3. #3
    Lannutslp
    Guest

    Re: How do I change 40402 into 04/04/2002?

    Thank you - I then needed to add 100 to the year to make it 2000.

    "George Nicholson" wrote:

    > use DATE(year,month,day)
    >
    > first, make it easy on yourslef and make sure all your data is 6 characters
    > long, with leading zeros.
    > ColumnB = Text(ImportedDataColumn,"000000")
    >
    > MyDate = DATE(Right(ColumnB,2), Left(ColumnB,2),Mid(ColumnB,3,2))
    >
    > HTH,
    > --
    > George Nicholson
    >
    > Remove 'Junk' from return address.
    >
    >
    > "Lannutslp" <[email protected]> wrote in message
    > news:[email protected]...
    > >I downloaded a database from an AS/400 and now I need to change numbers to
    > > dates. When I format it changes everything because it is reading the
    > > number
    > > as a julian date.

    >
    >
    >


  4. #4
    George Nicholson
    Guest

    Re: How do I change 40402 into 04/04/2002?

    ah, those darn centuries! :-)

    --
    George Nicholson

    Remove 'Junk' from return address.


    "Lannutslp" <[email protected]> wrote in message
    news:[email protected]...
    > Thank you - I then needed to add 100 to the year to make it 2000.
    >
    > "George Nicholson" wrote:
    >
    >> use DATE(year,month,day)
    >>
    >> first, make it easy on yourslef and make sure all your data is 6
    >> characters
    >> long, with leading zeros.
    >> ColumnB = Text(ImportedDataColumn,"000000")
    >>
    >> MyDate = DATE(Right(ColumnB,2), Left(ColumnB,2),Mid(ColumnB,3,2))
    >>
    >> HTH,
    >> --
    >> George Nicholson
    >>
    >> Remove 'Junk' from return address.
    >>
    >>
    >> "Lannutslp" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I downloaded a database from an AS/400 and now I need to change numbers
    >> >to
    >> > dates. When I format it changes everything because it is reading the
    >> > number
    >> > as a julian date.

    >>
    >>
    >>




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1