I have the following situration:
1. Field A = Date Field
2. Field B = Picklist with values ranging from 1 to 28
3. Field C = Date Field
I would like to do the following
1. When Field A (Date) is chosen and also Field B (Picklist Value) is selected than it will add the picklist value as "days" to field A and output it as Date in Field C
I currently have the following code.
** Note ** The date format is DD/MM/YYYY
The problem is though when ever I use the following code if I select for example 01/12/2011 in Field A and Picklist option with Value 2 I get the following date: 12/12/2011.
All it's doing is joining the picklist value to the first number.
Appreciate your help experts!
var _Date=new Date(crmForm.all.new_serviced_date.DataValue);