Apr 8, 2004 #1 mmhmark MIS Joined Jan 22, 2004 Messages 3 Location US I have four different date fields for each record and need to select the greatest date. Date 1: 03/21/01 Date 2: 01/01/01 Date 3: 02/20/01 Date 4: 01/30/01 Formula would select 03/21/01
I have four different date fields for each record and need to select the greatest date. Date 1: 03/21/01 Date 2: 01/01/01 Date 3: 02/20/01 Date 4: 01/30/01 Formula would select 03/21/01
Apr 8, 2004 #2 synapsevampire Programmer Joined Mar 23, 2002 Messages 20,180 Location US Try: datevar array MyDates := [{table.date1},{Table.date2},{table.date3},{Table.date4}]; maximum(MyDates) -k Upvote 0 Downvote
Try: datevar array MyDates := [{table.date1},{Table.date2},{table.date3},{Table.date4}]; maximum(MyDates) -k
Apr 8, 2004 Thread starter #3 mmhmark MIS Joined Jan 22, 2004 Messages 3 Location US It worked but I had to use dateTimeVar. Thanks for the quick response Upvote 0 Downvote
Apr 8, 2004 #4 synapsevampire Programmer Joined Mar 23, 2002 Messages 20,180 Location US Makes sense if you had a datetimevar, note that your example data was a type date, not datetime. -k Upvote 0 Downvote