calculate day from date

L

littleskinny83

hi..
I want to ask how to calculate day from date. For example 21/05/08 -
21/06/08, how many days between these dates and how to calculate days
from these dates.What is the format to convert date to day and format
to culcalate this culcalation.
 
J

John W. Vinson

hi..
I want to ask how to calculate day from date. For example 21/05/08 -
21/06/08, how many days between these dates and how to calculate days
from these dates.What is the format to convert date to day and format
to culcalate this culcalation.

Day([datefield])

will give an integer 21 if datefield contains #2008-05-21#.

DateDiff("d", [onedate], [anotherdate])

will give the integer number of midnights between the two date values.
 
T

Tom Lake

hi..
I want to ask how to calculate day from date. For example 21/05/08 -
21/06/08, how many days between these dates and how to calculate days
from these dates.What is the format to convert date to day and format
to culcalate this culcalation.

format(#21/05/2008#,"dddd")

will give you the day of the week, Monday

Tom Lake
 
L

littleskinny83

hi..
I want to ask how to calculate day from date. For example 21/05/08 -
21/06/08, how many days between these dates and how to calculate days
from these dates.What is the format to convert date to day and format
to culcalate this culcalation.

Day([datefield])

will give an integer 21 if datefield contains #2008-05-21#.

DateDiff("d", [onedate], [anotherdate])

will give the integer number of midnights between the two date values.

It works..Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top