Additional Field Value Question

Additional Field Value Question

We have written a script that will copy an additional field into the subject line of the request. In this case the script copies the Effective Date and time field in the Subject field. However we would like for it to only copy the Day and Date. So we would want it to look like this:

Trout, Brooke - Effective Date Thu Apr 14 2016

Below is a snippet of how it currently looks. Anything after 2016 we would like for it to not populate in the subject line.


I am assuming this can be done but i am not very familiar with Field and Form rules yet and was wondering if someone could point me in the right direction.

Here is the script we are currently using:

var ln=$CS.getValue("ServiceReq_User_UDF_CHAR10");
var fn=$CS.getValue("ServiceReq_User_UDF_CHAR11");
var ed=$CS.getValue("ServiceReq_User_UDF_DATE1");
var x=$CS.getValue("SUBJECT");
$CS.setValue("SUBJECT",ln + ", " + fn + " - " + x + " - Effective Date " + ed);   


Thanks in Advance,

Jason



                  New to ADSelfService Plus?