+ Reply to Thread
Results 1 to 12 of 12

date format wrong entry.

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    date format wrong entry.

    Hi i have a problem with my date format.

    whenever i input in the textbox dd/mm/yyyy it change to mm/dd/yyyy

    below is my code when i click add entry

    Please Login or Register  to view this content.

    thank you guys
    Attached Images Attached Images
    Last edited by AliGW; 05-03-2020 at 03:19 AM. Reason: Code tags corrected.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: date format wrong entry.

    How about:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: date format wrong entry.

    thank you for your response, i will try it now..

  4. #4
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: date format wrong entry.

    hi kaper it still thesame, thank you for helping me, i dont know what seems to be the problem .

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: date format wrong entry.

    Are you using a machine with a US locale?
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: date format wrong entry.

    Hi maam, i am using US locale
    - the problem is when i input 03/05/2020 it will enter in the excel as 05/03/2020 , i will upload my excel file maybe there's a code that is incorrect.
    Last edited by GOrtega; 05-04-2020 at 01:07 AM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: date format wrong entry.

    That's correct, because the US locale expects dates in MM/DD/YYYY format. Have you tried changing the locale settings to UK? Does it fix the problem?

  8. #8
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: date format wrong entry.

    i already change it maam, i think my code is the problem, because when i input the date, the entry is wrong..

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: date format wrong entry.

    You may try:

    Please Login or Register  to view this content.
    If this leads to a value in a cell which looks like a date in proper format (but is a text) then you are probably on a good way. You may try then something like:

    Please Login or Register  to view this content.
    or may be:
    Please Login or Register  to view this content.
    The problem is probably (as noted by Ali) heavily related to regional settings, moreover, excel is often "too helpful" when it gets to dates.

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: date format wrong entry.

    Recently provided you with code and app of a similar nature.
    Did you have a problem with dates in that app.
    If not look for the code below, it enabled you to enter the date as eight digits and the code inserted the separators.
    I see from your code above you have reverted back to a mass of coded data entry
    Your VBA has a password if anyone else wants to help perhaps a good idea to unlock it for them

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: date format wrong entry.

    oh i forgot to unlock it sorry, password is garrett

    +thank you all for your quick response, so much appreciated hopefully you can check my codes in my vba sorry im just a newbie in vba coding

  12. #12
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: date format wrong entry.

    Please Login or Register  to view this content.
    Thank you so much this one works..

    - hoping you can check my vba code, thank you so much.

+ 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. Errortrap wrong date entry
    By kemarsden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2020, 11:43 PM
  2. [SOLVED] Date format wrong
    By randall78 in forum Excel General
    Replies: 10
    Last Post: 06-14-2018, 08:33 AM
  3. wrong date format
    By isurunk in forum Excel General
    Replies: 2
    Last Post: 03-12-2018, 03:32 AM
  4. [SOLVED] Date Format Wrong in one cell
    By sijostephen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2017, 01:36 PM
  5. Vba help needed to check date and time entry and correct if wrong
    By markharris2004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2014, 05:06 PM
  6. Excel 2007 : Date entry is wrong
    By Attila in forum Excel General
    Replies: 4
    Last Post: 01-02-2010, 09:47 PM
  7. Macro gives the wrong date format
    By chin_un_len in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2006, 08:46 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