Microsoft® Excel® based database addin

 

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    samuel Guest

    Default text to date conversion

    I'm trying to convert the following text 20061230.1437 to

    12/30/06 14:37

  2. #2
    Gary''s Student Guest

    Default RE: text to date conversion

    =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,10,2),RIGHT(A1,2),0)
    and format as Custom m/d/yyyy hh:mm
    --
    Gary''s Student - gsnu200738


    "samuel" wrote:

    > I'm trying to convert the following text 20061230.1437 to
    >
    > 12/30/06 14:37


  3. #3
    samuel Guest

    Default RE: text to date conversion

    I was using the & " " & instead of the +

    Can you tell me why mine wouldn't work?

    "Gary''s Student" wrote:

    > =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,10,2),RIGHT(A1,2),0)
    > and format as Custom m/d/yyyy hh:mm
    > --
    > Gary''s Student - gsnu200738
    >
    >
    > "samuel" wrote:
    >
    > > I'm trying to convert the following text 20061230.1437 to
    > >
    > > 12/30/06 14:37


  4. #4
    Gary''s Student Guest

    Default RE: text to date conversion

    By using the + we are making a value. The integer part of the value is the
    date and the decimal part of the value is the time.
    --
    Gary''s Student - gsnu200738


    "samuel" wrote:

    > I was using the & " " & instead of the +
    >
    > Can you tell me why mine wouldn't work?
    >
    > "Gary''s Student" wrote:
    >
    > > =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,10,2),RIGHT(A1,2),0)
    > > and format as Custom m/d/yyyy hh:mm
    > > --
    > > Gary''s Student - gsnu200738
    > >
    > >
    > > "samuel" wrote:
    > >
    > > > I'm trying to convert the following text 20061230.1437 to
    > > >
    > > > 12/30/06 14:37


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