public static function getSafeDateProperty(\stdClass $object, ...$properties)
    {
        $val = self::getSafeProperty($object, ...$properties);
        if ($val === null) {
            return null;
        }
        $val = preg_replace('/\.\d+/', '', $val);
        return new Carbon($val);
    }