+ Reply to Thread
Results 1 to 7 of 7

Issues with Regional Date formatting

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    4

    Issues with Regional Date formatting

    Hi all,

    Thanks for any help you can offer.

    Here's the problem. I prefer the yyyy-MM-dd date format, but, living in the US, many date sources I may paste in are formatted as M/d/yyyy.

    If I set my PC's short date format to yyyy-MM-dd, then Excel can't parse the date with slashes and I have to manually change them all to something that can be understood by Excel.

    If I set my PC's short date format to M/d/yyyy, Excel can still parse the yyyy-MM-dd formats. However, then I have to manually switch the Excel formatting of all dates in all current spreadsheets to yyyy-MM-dd. Furthermore, while Excel displays these dates properly, it changes the text in the cell to M/d/yyyy, which is not preferred when editing the cell, pasting into CSV files, or reading into other software. This is worse.

    So, how can I have the default yyyy-MM-dd while still being able to understand the M/d/yyyy format? Is there something simple I missed?

    Thanks

    EDIT: Here's a screenshot showing my attempt to change the format of a M/d/yyyy date. None of the formatting options understand that this is a date, as can be seen from the preview text underneath each option.

    ExcelDates.png
    Last edited by buggaby; 04-18-2020 at 09:07 AM. Reason: Adding a photo

  2. #2
    Registered User
    Join Date
    11-24-2018
    Location
    Sydney, AUstralia
    MS-Off Ver
    2016
    Posts
    23

    Re: Issues with Regional Date formatting

    Ignoring changing PC regional settings or Excel date settings I just want to understand the basics.

    You copy in a date that is in M/d/yyyy e.g. 12/25/19

    Are you saying the result you want is for your spreadsheet to not only display 2019-12-25 but to actually change the data to be 2019-12-25 as well OR can the data itself stay as 12/25/19.

  3. #3
    Registered User
    Join Date
    05-29-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    4

    Re: Issues with Regional Date formatting

    Thanks for the reply. I would be happy with either option, frankly. As long as I can use the "12/25/2019" as a date, I'm happy. But I get a string that can't be parsed as a date, meaning that all date functions return "#VALUE!".

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,289

    Re: Issues with Regional Date formatting

    Is changing the celformat to yyyy-MM-dd not enough?
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    05-29-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    4

    Re: Issues with Regional Date formatting

    Quote Originally Posted by popipipo View Post
    Is changing the celformat to yyyy-MM-dd not enough?
    As I have stated earlier, a "M/d/yyyy" string is not understood as a date. So no, just changing the cell format doesn't change the displayed text.

  6. #6
    Registered User
    Join Date
    11-24-2018
    Location
    Sydney, AUstralia
    MS-Off Ver
    2016
    Posts
    23

    Re: Issues with Regional Date formatting

    Hi Buggaby

    You could use formulas in another cell to display the data in your format once its been pasted but this would be clunky and not recognised as a date for sorting or display.

    If you were importing data instead of just copy/paste you could use text to columns to manipulate the data as it is imported but I really don't think you can do what you want as stated as Excel would almost need to be psychic to display what you want and trteat it as a date in 2 different formats (incoming and display).

    Is there a reason you need the YYYY format apart from just being comfortable with that? Sorting or some other reason? If not I don't see how this can be done without coding or import.

  7. #7
    Registered User
    Join Date
    05-29-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    4

    Re: Issues with Regional Date formatting

    I'm not sure I understand why Excel would need to be "psychic". I mean, Google Sheets does this properly.

    And more than that, Excel already does interpret multiple formats. Specifically, as pointed out in the question, it interprets yyyy-MM-dd fine regardless of the regional settings. It's only the M/d/yyyy that is treated so uniquely for some reason.

+ 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. [SOLVED] time date formatting issues
    By Davis.Gray in forum Excel General
    Replies: 7
    Last Post: 08-06-2013, 04:25 PM
  2. [SOLVED] formatting issues pasting date from array to column in worksheet
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-05-2013, 10:42 AM
  3. [SOLVED] Date Formatting Issues
    By GalmOne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2012, 08:44 AM
  4. Linking a range of cells - date formatting issues
    By StephTron in forum Excel General
    Replies: 3
    Last Post: 05-08-2009, 12:22 PM
  5. Date formatting issues
    By kguillen in forum Excel General
    Replies: 0
    Last Post: 04-04-2009, 12:38 PM
  6. Date formatting/conversion issues
    By Abacus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2009, 07:09 PM
  7. Formatting issues number showing as date
    By MyronCope in forum Excel General
    Replies: 1
    Last Post: 08-06-2008, 08:56 PM
  8. Regional Date Format
    By Chipcom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2007, 03:26 PM

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