+ Reply to Thread
Results 1 to 5 of 5

Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    zurich
    MS-Off Ver
    Excel 2010
    Posts
    99

    Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD

    Hi,

    I took the help from this forum long back.
    I want to convert to date from DD-MON-YYYY into YYYY-mm-DD format in column J.

    It is also applicable to date separated by semicolon. It was working previously but not now. can anyone help me.

    Thanks in advance

    HTML Code: 
    I made one mistake . date conversion should be 2014/03/11 if orignial date is 11-MAR-2014
    Attached Files Attached Files
    Last edited by abraham30; 03-20-2014 at 08:25 AM. Reason: changing month to mm format

  2. #2
    Forum Contributor
    Join Date
    02-24-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    317

    Re: Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD

    If I understand what you want (year/month/day), then this slight modification.
    Please Login or Register  to view this content.
    Just so you know, your code could be better constructed like this;
    Please Login or Register  to view this content.
    Last edited by Jim885; 03-20-2014 at 08:40 AM.
    If I helped in any way, please click the star

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    zurich
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD

    Thanks Jim for your help.

    But the macro is not working in cell J2 and j5.
    Could you please check once again. Thanks in advance

  4. #4
    Forum Contributor
    Join Date
    02-24-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    317

    Re: Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD

    What do you have in those two cells?

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Issue in macro to convert date from DD-MON-YYYY into YYYY-MON-DD

    Please Login or Register  to view this content.
    Last edited by AB33; 03-20-2014 at 09:29 AM.

+ 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. Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY
    By ramki in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-23-2014, 12:03 AM
  2. Convert dd/mm/yyyy DATE >> to mm/yyyy TEXT
    By Mr.X in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2014, 10:59 PM
  3. [SOLVED] Imported data contains strings dd.mm.yyyy how can I convert to date format dd/mm/yyyy inVB
    By Boormo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-05-2012, 05:48 PM
  4. Copy+Paste macro dd/mm/yyyy to dd/mm/yyyy and NOT dd/mm/yyyy to mm/dd/yyyy
    By uimhirADo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2012, 03:45 AM
  5. Macro to convert dates format from yyyy mm dd to yyyy-mm-dd
    By Gators in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-26-2009, 02:23 PM

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