* myDateTimeField is the datetime field that we'll perform arithmetic on * For this example suppose code is in Valid of myDateTimeField textbox * this.value would represent the current datetime value * We need 15 mins later nMinutes = 15 dtNextCheckTime = this.value+nMinutes*60 * We added 15 mins (15*60seconds) to current datetime value in field * and dtNextCheckTime is in datetime format cNextCheckTime = ttoc(dtNextCheckTime) && Converted to character * Now something like "01/01/1998 15:23:21" wait window nowait ; "Next check is on "+cNextCheckTime * Or just to show hour,min cTimeMessage = substr(cNextCheckTime,12,5) wait window nowait ; "Next check is on "+cTimeMessage * We didn't touch how hour or date would be displayed * assuming already in format user wants * To change them you would use "set date to ...", "set hours to .." * Below doing all above in one line : * wait window nowait ; * "Next check is on "+ttoc(this.value+nMinutes*60)Cetin