Javascript: How to extract data from 2 fields into 1?
I am trying to extract a start date and return date into one field to show travel date. These text-boxes are formatted as Date fields except for Travel Date. one is (departure) and the other is (return). I want to extract these two fields into one field so that the travel date text-box is: ("departure" - "return").
Below is what I currently have however it is not working.
var sDate = this.getField("text4").value;
var rDate = this.getField("text15").value;
var tDate = this.getField("dateTravel").value;
tDate.value = sDate.value + " - " + rDate.value;
