Year Comparison using Automation Script
from java.util import Calendar
cal = Calendar.getInstance()
cal.setTime(actcomdateloc)
locactcomyear = cal.get(Calendar.YEAR)
currentyear = Calendar.getInstance().get(Calendar.YEAR);
val = currentyear-locactcomyear
return val
cal = Calendar.getInstance()
cal.setTime(actcomdateloc)
locactcomyear = cal.get(Calendar.YEAR)
currentyear = Calendar.getInstance().get(Calendar.YEAR);
val = currentyear-locactcomyear
return val
No comments:
Post a Comment