+ Reply to Thread
Results 1 to 3 of 3

Multiple Date Formats

  1. #1
    Registered User
    Join Date
    08-05-2022
    Location
    kuwait
    MS-Off Ver
    10
    Posts
    1

    Multiple Date Formats

    Dear All,

    I receive data in different date formats( dd/mm/yyyy hh:mm:ss, dd-mm-yyyy hh:mm:ss.....etc date, text mixed formats). I want final output should be in mm/dd/yyyy hh:mm:ss

    Below macro (not written by me) only does part of the job. I have attached the excel file. Column B highlighted in red is not converted as expected. I want date to be converted as in column C (i.e: mm/dd/yyyy hh:mm:ss)

    Please Login or Register  to view this content.
    PC time format is mm/dd/yyyy

    Please any one help me,
    Attached Files Attached Files
    Last edited by AliGW; 08-06-2022 at 06:04 AM. Reason: Code tags added.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,240

    Re: Multiple Date Formats

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you this time.)

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,521

    Re: Multiple Date Formats

    See this thread. You may find what you are looking for there.

    Artik

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data from multiple date formats
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2022, 02:04 PM
  2. [SOLVED] Multiple Date Formats
    By leebird in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-29-2016, 04:14 PM
  3. Multiple date formats need to be converted
    By foamcows in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2011, 01:25 PM
  4. How to change multiple date formats in same column
    By muchado in forum Excel General
    Replies: 6
    Last Post: 11-10-2010, 01:37 AM
  5. Adjust multiple date formats
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2009, 10:01 PM
  6. Multiple date formats to 1
    By somesoldiers in forum Excel General
    Replies: 6
    Last Post: 07-29-2009, 12:16 PM
  7. [SOLVED] Multiple Date/Time Formats
    By colin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2005, 07:05 AM

Tags for this Thread

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