Hello, I am trying to return the current year in a gateway script. The following returns a value of 1970. How can I return the current year in “yyyy” format? Thanks for any help!
from java.util import Calendar
import java.text.SimpleDateFormat as sdf
print sdf("yyyy").format(Calendar.getInstance().get(Calendar.YEAR));