Hi experts
I am trying to convert the below javascript code to farmcalc code. I am new to formcalc script. can anyone help me out this conversion
var today = new Date();
var dateParts = user_date.rawValue.split("-");
var date_1 = new Date(dateParts[0], dateParts[1]-1, dateParts[2]);
if(date_1.getTime() < today.getTime())
{
app.alert("some alerting text");
}
Thanks in advance
Regards
arul