---
title: xpc_date_create_from_current()
framework: xpc
role: symbol
role_heading: Function
path: xpc/xpc_date_create_from_current()
---

# xpc_date_create_from_current()

Creates an XPC date object that represents the current date.

## Declaration

```swift
func xpc_date_create_from_current() -> xpc_object_t
```

## Return Value

Return Value A new date object representing the current date.

## See Also

### Date objects

- [xpc_date_create(_:)](xpc/xpc_date_create(_:).md)
- [xpc_date_get_value(_:)](xpc/xpc_date_get_value(_:).md)
