+ Reply to Thread
Results 1 to 8 of 8

Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY

  1. #1
    Registered User
    Join Date
    10-13-2006
    Posts
    60

    Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY

    Hi,

    Have for two question in date function

    1. How to convert MM-DD-YYYY to DD-MM-YYYY & wise-versa in date function?

    2. How to convert a Text Format to Date Format?

    Please Help. Thanks in advance

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You choose or create a Custom Number format. From the Format menu choose Cells>-Number>-Custom.

    How are your dates input as Text?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    07-16-2004
    Location
    Illinois
    MS-Off Ver
    Office 365
    Posts
    122
    One way that I found is to right click the cell, go to format cells, then click date from the list given. The date option then allows you to choose various styles of date formatting.

    If you don't like any of the styles there, click custom, then you can type it mm-dd-yy or yy-dd-mm or dd-mm-yy. I hope that helps.

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    If your dates appear as a date form recognizable to Excel, but are still being treated as text, put a 0 in a cell, copy that cell, then highlight all the dates, Paste Special -> Add. This should convert them all to actual dates.

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Another method of converting dates that are treated as text

    Select Dates
    Data Menu
    Text To Column
    Delimited - Untick all options (Can also use Fixed Width)
    Next
    Select Date Option
    Finish
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  6. #6
    Registered User
    Join Date
    05-19-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY

    Years late, but thank you! And the fact that you from from Melbs make it even better ;-) Thanks for saving me countless hours of work with something so simple!

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY

    I know you have already found a solution, but somebody else may find this while searching for a solution. You can convert a text date to a date value with the DATEVALUE function. This wont change MM/DD/YYYY to DD/MM/YYYY though and if your default is DD/MM/YYYY it will show, for example May 3 2013 (displayed as text as 05/03/2013), as 5 March 2013. There is another more complicated formula you could use though. If the text date is in cell A1 you could use this formula: =DATE(VALUE(RIGHT(A1,4)),VALUE(LEFT(A1,FIND("/",A1)-1)),VALUE(MID(A1,FIND("/",A1)+1,2))). This of course assumes the text date is in the D/MM/YYYY format. It can be altered to match other formats, eg replacing "/" with "-" if necessary.
    Last edited by gak67; 04-23-2014 at 12:03 AM. Reason: I made an error

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Date Function: How to convert MM-DD-YYYY to DD-MM-YYYY

    Thanks for the update, gak, and welcome to the forum
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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