1 month ago

How to save current date as unix timestamps in Postgres?

Posted 1 month ago by AlexanderKim

Now, i'm saving my date this way:

$link->created = Carbon::now();

But in postgre i'm getting '2019-08-29' kind of date, so i cannot reformat it on my frontend with hours, minutes, seconds. What's the correct way on saving current date with Carbon?

Please sign in or create an account to participate in this conversation.