goaganesha
Programmer
Hello,
I'm having troubles with getting a date in the correct format in an accessdatabase. I live in europe and here we display dates like dd/mm/yyyy. I use the now function to get the current datetime and then convert it with this function:
this returns the date like 24/02/2005. which is correct.
right before insert the date in the database, i do a response.write and the date is still correct. But if I check the database it is converted to 02/24/2005.
All regional settings on the server are correct and the format in the access database is set to dd/mm/yyyy, but still it is converted. Any solutions?
regards, goaganesha
I'm having troubles with getting a date in the correct format in an accessdatabase. I live in europe and here we display dates like dd/mm/yyyy. I use the now function to get the current datetime and then convert it with this function:
Code:
Function ReturnDateFormat(strDate)
If isDate(strDate) Then
ReturnDateFormat = Day(strDate) & "/" & Month(strDate) & "/" & Year(strDate)
Else
Response.Redirect "../index.asp?content=err_Date"
Response.End
End If
End Function
right before insert the date in the database, i do a response.write and the date is still correct. But if I check the database it is converted to 02/24/2005.
All regional settings on the server are correct and the format in the access database is set to dd/mm/yyyy, but still it is converted. Any solutions?
regards, goaganesha