Apr 8, 2004 #1 mmhmark MIS Jan 22, 2004 3 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 Mar 23, 2002 20,180 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 Jan 22, 2004 3 US It worked but I had to use dateTimeVar. Thanks for the quick response Upvote 0 Downvote
Apr 8, 2004 #4 synapsevampire Programmer Mar 23, 2002 20,180 US Makes sense if you had a datetimevar, note that your example data was a type date, not datetime. -k Upvote 0 Downvote