Implemented behavior to Convert datetime