Try this https://www.php.net/manual/en/function.unixtojd.php
$jul = unixtojd($date->timestamp);
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I have the following code:
date = "12/19/2019"
$date = Carbon::parse($event->data['date']);
I would like to convert this to a Julian Date
20001
I just cannot find anything to easily convert this to julian.
Thanks in advance.
@willvincent thats what i was looking for dayofyear, thanks for your help. And PS i had googled trying to find this!!
Please or to participate in this conversation.