Morning all, Sorry doing this without showing the code as I dont have access to it at the moment, but in short I have a calendar form that when selected it transfers that date into a textbox on another userform. Now it all works fine if the day is the 13th or more but if its before the day and month get swapped over.
I am working on UK dates so dd/mm/yyyy and set it up so it formats as date = Format(userform1.textbox2.value , "dd/mm/yyyy") or something like that, sorry dont have access at the moment. Not sure if it matters, but I am from the UK so my reginal settings are set to UK as well.
Is there another way rather than using the format function to make a date stick to the dd/mm/yyyy format so the month and days dont get swapped over when its less than the 13th of the month?
From some research I have seen the use of CDate, but I will be honest, I have never used that, or know how that works.
Sorry I know this is really vague, and I am not giving you all much to look at or work with, but wanted to see if anyone else has had the same issue and worked out a workaround?
Many thanks
Mark
I am working on UK dates so dd/mm/yyyy and set it up so it formats as date = Format(userform1.textbox2.value , "dd/mm/yyyy") or something like that, sorry dont have access at the moment. Not sure if it matters, but I am from the UK so my reginal settings are set to UK as well.
Is there another way rather than using the format function to make a date stick to the dd/mm/yyyy format so the month and days dont get swapped over when its less than the 13th of the month?
From some research I have seen the use of CDate, but I will be honest, I have never used that, or know how that works.
Sorry I know this is really vague, and I am not giving you all much to look at or work with, but wanted to see if anyone else has had the same issue and worked out a workaround?
Many thanks
Mark