Add Julian Date along with date field in monthly calendar

Discuss everything related to ApPHP Calendar. All versions. Any questions related to the ApPHP Calendar developing or using should be posted to this forum.

Moderator: alexandrleonenko

eifeldude
Newbie
Newbie
Posts: 3
Joined: Aug 15th, '17, 23:58

Add Julian Date along with date field in monthly calendar

Postby eifeldude » Aug 16th, '17, 00:03

Could someone tell me how I can add the Julian Date along side the monthly day in the calendar. for example June 26 would have a Mon 26 Julian date 177

any help would be appreciated. I have seen some script examples, but not sure how to implement them

thanks

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Add Julian Date along with date field in monthly calendar

Postby ne_moj » Aug 18th, '17, 13:23

Hello eifeldude

Finally I was able to deal with your problem.

Find the file calendar/calendar.class.php find the line:

Code: Select all

private $dateFormat = 'mm/dd/yyyy';

And change it to:

Code: Select all

private $dateFormat = 'dd/mm/yyyy';


Regards

eifeldude
Newbie
Newbie
Posts: 3
Joined: Aug 15th, '17, 23:58

Re: Add Julian Date along with date field in monthly calendar

Postby eifeldude » Aug 19th, '17, 13:30

Thanks for you help, but it looks like all that does is just give the European date style. The julian date will display the numbered day of the year. for example, todays Julian date is 231. I have posted a calendar example. I have seen this done before, but not sure about the code snippet.
https://landweb.nascom.nasa.gov/browse/calendar.html

many thanks to who can help

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Add Julian Date along with date field in monthly calendar

Postby ne_moj » Aug 21st, '17, 06:11

Hello eifeldude

I want to clarify, maybe I misunderstood you. Do you want to display the day number from the beginning of the year, for example today on August 21, but you want to display "day 233"?

Tominywa
Newbie
Newbie
Posts: 2
Joined: Dec 14th, '17, 03:51
Contact:

Re: Add Julian Date along with date field in monthly calendar

Postby Tominywa » Dec 14th, '17, 08:57

Thanks for adding a day. Will be doing it It really helped me a lot.


Return to “ApPHP Calendar”