Skip to main content

Add Month in Date on the behalf of other Date Field

public boolean modified()
{
    boolean ret;
    utcDateTime _CloseDate;
    utcDateTime _OpenDate;
    Date _FinalDate;
    ret = super();
   
   
    _OpenDate = DateTimeUtil::newDateTime(HRMRecruitingTable.startDate, 0, DateTimeUtil::getCompanyTimeZone());

    _CloseDate = DateTimeUtil::addMonths(_OpenDate, 3);

    _FinalDate = DateTimeUtil::date(DateTimeUtil::applyTimeZoneOffset(_CloseDate, DateTimeUtil::getUserPreferredTimeZone())); 

     HRMRecruitingTable.endDate = _FinalDate;
   
   
    return ret;
}

Comments