Otherwise the ugly hack would be to do something like:
myDate = rs.fields("DateField")
myDate = Day(myDate) & "/" & Month(myDate) & "/" & Year(myDate) (which would actually return mm/dd/yyy to you because the month and day are transposed)
In that order because access is ass-backwards and puts the day first. :-P
- aba
Main Topics
Browse All Topics





by: abatardiPosted on 2004-07-21 at 01:48:00ID: 11600542
I believe default in access is dd/mm/yyyy and ASP and Weekday function are looking for mm/dd/yyyy
when you do the query in access you should be able to format the date something like this using the format function:
Format (#17/04/2004#, "mm/dd/yyyy")
Then you should be able to use any asp date function even tho your variable is a regular string type.
- aba