wiki/content/20201113123648-createfromimmutable.md

18 lines
339 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-13
2024-05-06 20:40:05 +00:00
id: 984344e1-ee68-4475-b792-71f2a6e0b766
title: createFromImmutable()
---
# Description
Similar to [createFromInterface()](20201113123327-createfrominterface),
but this function creates a `DateTime` object from a `DateTimeImmutable`
one.
# Syntax
``` php
DateTime::createFromImmutable(new DateTimeImmutable())
```