paulwoods23
IS-IT--Management
I currently use a short date in UK format (dd/mm/yy) in a On Click event from a form to use in a query within some VB code. But this date is then used in US format (mm/dd/yy). How do I convert it back to UK format within the code so that the output is correct?
I tried the following to convert it -
Then used DateConv instead of Me.Sdate.
But it didn't work. Any ideas?
I tried the following to convert it -
Code:
Dim DateConv As Date
DateConv = Format(Me.SDate, "dd/MM/yy")
Then used DateConv instead of Me.Sdate.
But it didn't work. Any ideas?