B
B
BonBon Slick2018-09-22 23:04:53
PHP
BonBon Slick, 2018-09-22 23:04:53

Carbon vs datetime immutable?

There are 2 dates

<field name="createdAt" type="carbondatetime" />
 <field name="updatedAt" type="carbondatetime" nullable="true" />

And a huge bunch of options for date formats.
5ba6a063b17b0252756638.pngWhat format for what date?
Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-09-22
@BonBonSlick

everything depends on logic. usually:
- creation date must not change
- modification date must change

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question