Coverting date from java to ruby