+ Reply to Thread
Results 1 to 4 of 4

Error Converting Text Date To Date

  1. #1
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Excel 2003
    Posts
    151

    Error Converting Text Date To Date

    I have this simple code that is intended to convert a text string of a date to its actual date equivalent (serial number).

    Please Login or Register  to view this content.
    tdr = "11JUL2019"

    I am getting a type mismatch error with the line in red. I have "td" publically defined as DATE

  2. #2
    Forum Expert
    Join Date
    08-13-2008
    Location
    UK
    MS-Off Ver
    2010 primarily
    Posts
    1,999

    Re: Error Converting Text Date To Date

    Try adding a delimiter like this:

    Please Login or Register  to view this content.
    Rory
    If a job's worth doing, it's worth doing right
    over your shoulder by your boss

  3. #3
    Forum Contributor
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    859

    Re: Error Converting Text Date To Date

    does combobox13 = Month?
    and
    does combobox12 = Day?

  4. #4
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Excel 2003
    Posts
    151

    Re: Error Converting Text Date To Date

    Thank you Rory!

+ 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