Corey-Troy Posted October 28, 2010 Posted October 28, 2010 (edited) I have the following calculation that will add a number field hours to a date field, but i cannot work out the solution to modify it to add minutes to the time field instead of hours. MonJ1Start - Date Field MonJ1Site - Number Field Time(Mod(Hour(MonJ1Start) + MonJ1Site;24); Minute(MonJ1Start); Seconds(MonJ1Start)) How can i do this? Edited October 28, 2010 by Guest
comment Posted October 28, 2010 Posted October 28, 2010 add a number field hours to a date field This makes no sense: you cannot add hours to a date field. add minutes to the time field What time field?
Corey-Troy Posted October 28, 2010 Author Posted October 28, 2010 (edited) Solved by self: Time(Hour(MonJ1Start); Mod(Minute(MonJ1Start) + MonJ1Site;1440); Seconds(MonJ1Start)) I moved the Mod( from the Hour to the Minute, and now it is ading the field number value to the time field in minutes. Sorry i think i think i stated Date instead of Time for one field type. Edited October 28, 2010 by Guest
comment Posted October 28, 2010 Posted October 28, 2010 :idunno: If all you want is to add a number of minutes to a time field, then = Timefield + 60 * Numberfield should be sufficient.
Recommended Posts
This topic is 5482 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now