use of Calendar class was not sufficent. removed and made custom hack