Cells B2 and B3 each have a date entered in them. I want to compare the two dates and display the earlier date in cell C2. Or, stated another way:
if B2 < B3, display B2 in cell C2
if B3 < B2, display B3 in cell C2
I do something like this with Acrobat's JavaScript but am lost with Google Sheets.
var date1 = this.getField("txt_date.0").value;
var date2 = this.getField("txt_date.1").value;
if(date1 < date2)
event.value = date1;
if(date2 < date1)
event.value = date2;