dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 dates 05-12-07 and 31-07-07
i want to make the diference beetwen those 2 (first - second)

how can i do that
 
Using the function DateDiff you can get the difference between two dates
(check help on the options you have: month weeks days etc)

DateDiff("d",[FirstDate],[SecondDate])

will give the difference in days between two dates
 
The datediff function will do it for you.

DateDiff("h", [START_MK], [STOP_MK])

the "h" represents hours though you can change it days, months, weeks or
whatever.

Do you want to exclude weekends and bank holidays?
 
I tried

DateDiff("d", [dat_venc], [data])

but it says that as a mistake ...

what could it be?

"scubadiver" escreveu:
The datediff function will do it for you.

DateDiff("h", [START_MK], [STOP_MK])

the "h" represents hours though you can change it days, months, weeks or
whatever.

Do you want to exclude weekends and bank holidays?


--
The 11th day of every month:

http://truthaction.org/forum/index.php


Hugo C. said:
I have 2 dates 05-12-07 and 31-07-07
i want to make the diference beetwen those 2 (first - second)

how can i do that
 
What is the error?
Where did you try it?
Are the two fields type is Date?

--
Good Luck
BS"D


Hugo C. said:
I tried

DateDiff("d", [dat_venc], [data])

but it says that as a mistake ...

what could it be?

"scubadiver" escreveu:
The datediff function will do it for you.

DateDiff("h", [START_MK], [STOP_MK])

the "h" represents hours though you can change it days, months, weeks or
whatever.

Do you want to exclude weekends and bank holidays?


--
The 11th day of every month:

http://truthaction.org/forum/index.php


Hugo C. said:
I have 2 dates 05-12-07 and 31-07-07
i want to make the diference beetwen those 2 (first - second)

how can i do that
 
thanks i manage to solve my problem ...

the formula worked it was a comma mistake ...

Thanks for everything and 4 ur time ...

"Ofer Cohen" escreveu:
What is the error?
Where did you try it?
Are the two fields type is Date?

--
Good Luck
BS"D


Hugo C. said:
I tried

DateDiff("d", [dat_venc], [data])

but it says that as a mistake ...

what could it be?

"scubadiver" escreveu:
The datediff function will do it for you.

DateDiff("h", [START_MK], [STOP_MK])

the "h" represents hours though you can change it days, months, weeks or
whatever.

Do you want to exclude weekends and bank holidays?


--
The 11th day of every month:

http://truthaction.org/forum/index.php


:

I have 2 dates 05-12-07 and 31-07-07
i want to make the diference beetwen those 2 (first - second)

how can i do that
 

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

Similar Threads

Dlookup 7
Date Calculation 2
Date/Time Formatting 2
Multiple Date Records 4
Design / Execution Question 9
Period End Dates Table ... How to Link? 3
Determine what week a day is in 1
serial number - dynamic 3

Back
Top