I am very new to solidity and stack exchange as well. I am trying to use the date time api from https://github.com/pipermerriam/ethereum-datetime/tree/master/contracts. What getYear(date) does is that it takes an argument date and returns the year of the date. I am trying to save the returned value of getYear() to a variable requiredYear like I do in Java or C++. The truffle compiler is giving me other errors so I cannot tell whether this is correct, but I was also not able to find any documentation about it. Any help would be appreciated!
uint16 requiredYear = getYear(uint dateStampOfMileStone) constant returns (uint16);