hi
my access database may be placed on OS with different date settings - i.e.
the date may be m/d/y or d/m/y
how can i use this databse in a consisten way?
I want to be able to sort on the date for example 'select * from ...
mydatetime asc'
I also want to filter so that i can say 'select * from ... where mydatetime[color=blue]
>' & mydatetimevar[/color]
which is the best way to store the dates in the database i.e. if i get the
date using now() what do i do to it before putting into the database.
if i just store now() into a datetime then it gets confused when dates are
like 07/08/2005 - which can be in jul or aug
is there a way i can get now() to give me a better datetime value.
i am using VBScript ASP by the way.
Thanks
D
my access database may be placed on OS with different date settings - i.e.
the date may be m/d/y or d/m/y
how can i use this databse in a consisten way?
I want to be able to sort on the date for example 'select * from ...
mydatetime asc'
I also want to filter so that i can say 'select * from ... where mydatetime[color=blue]
>' & mydatetimevar[/color]
which is the best way to store the dates in the database i.e. if i get the
date using now() what do i do to it before putting into the database.
if i just store now() into a datetime then it gets confused when dates are
like 07/08/2005 - which can be in jul or aug
is there a way i can get now() to give me a better datetime value.
i am using VBScript ASP by the way.
Thanks
D
Comment