+ Reply to Thread
Results 1 to 5 of 5

Date entered in mm/dd/yy format instead of dd/mm/yy.

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    144

    Date entered in mm/dd/yy format instead of dd/mm/yy.

    Hello,
    I have code that looks for the last Friday of the current week and enters it into a cell however the date is being entered as 'mm/dd/yy' instead of 'dd/mm/yy'.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,797

    Re: Date entered in mm/dd/yy format instead of dd/mm/yy.

    I think VBA deals with dates in US format. You might have to do the formatting at sheet level (NUMBER FORMAT on the Home ribbon - SHORT DATE).
    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
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,174

    Re: Date entered in mm/dd/yy format instead of dd/mm/yy.

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    144

    Re: Date entered in mm/dd/yy format instead of dd/mm/yy.

    Awesome, thank you John (so simple)

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,174

    Re: Date entered in mm/dd/yy format instead of dd/mm/yy.

    You're welcome and thank you for the rep

+ 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. Replies: 4
    Last Post: 02-15-2017, 08:00 AM
  2. Retain date format for input entered as date
    By Chippi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2014, 07:20 AM
  3. Convert data entered in a different format to Date format
    By rakesh2806 in forum Excel General
    Replies: 6
    Last Post: 02-19-2014, 12:50 PM
  4. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  5. [SOLVED] Userform date entered in UK format but showing in US Format in spreadsheet
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-23-2013, 01:59 PM
  6. Restrict the date format entered in a cell
    By skonduru in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-22-2010, 04:43 PM
  7. Replies: 0
    Last Post: 05-25-2009, 06:58 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