AlexanderKim
3 months ago
1292
9
Requests

How to save current date as unix timestamps in Postgres?

Posted 3 months 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.