Date and time typecasting fixed