Convert date object to calendar object