G
Guest
I have one [Date] and two time fields [start] and [finish]. The time cycle is
either 9am-9pm OR 9pm-9am, so in one case the date of [finish] changes and in
another it doesn't. I guess if I had two date fields [st_date] and
[end_date], it will be easier to perform calculations. Unfortunately end_date
is not given.
I am able to get the results in "HH:MM" (11:40) format through the following
statement.
Expr1: Format((DateDiff("n",Format([Date],"mm/dd/yyyy") & " " &
[Start],Format([Date]+1,"mm/dd/yyyy") & " " & [Finish])/1440),"Short Time")
Question:
1. How do I get time in minutes? (like 700 min.)
2. Am I using the right method or there is a better way to do this?
I also tried adding "hh:nn" into date format, it gives an error.
Any suggestion is highly appreciated. Thanks in advance.
Doug
either 9am-9pm OR 9pm-9am, so in one case the date of [finish] changes and in
another it doesn't. I guess if I had two date fields [st_date] and
[end_date], it will be easier to perform calculations. Unfortunately end_date
is not given.
I am able to get the results in "HH:MM" (11:40) format through the following
statement.
Expr1: Format((DateDiff("n",Format([Date],"mm/dd/yyyy") & " " &
[Start],Format([Date]+1,"mm/dd/yyyy") & " " & [Finish])/1440),"Short Time")
Question:
1. How do I get time in minutes? (like 700 min.)
2. Am I using the right method or there is a better way to do this?
I also tried adding "hh:nn" into date format, it gives an error.
Any suggestion is highly appreciated. Thanks in advance.
Doug