PDA

View Full Version : epc_calendar question


qenq
11-02-2007, 05:47 AM
Hi,

i would like to get the some data out of the calendar to show to an specified user.

In the epc_calendar, there is an startdate and an enddate (recurring event) (eventType Weekly, repeatx=2)

For example the startDate says 2454383 and the endDate says also 2454383.

I would like to show this data to my customers as an date() variable, could someone help me on this.

The reason is, that we use the calendar to show our next delivery data to our customers. The customer from region 1 does not have to see the data from region 2 and so on.

What i use the epc_calendar for (or would like to) is that i would show in the custumers order, the next 3 delivery data. (dd.mm.yyyy)

It would be great if someone could help me on this.

First i thought the 2454383 is an timestamp, but if i try to change it in an date() format, it says 1970-01-29 10:46:30 regardless of the number in the database, so it is not an timestamp.

Thank you in advance

ve9gra
11-02-2007, 07:01 AM
That is the Julian Day format. It's all over the forums.

http://www.php.net/jdtogregorian