the indentation of the code in these date functions needs some indentation fixing.