Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

MySQL startDate Field
Old 06-23-2005, 07:09 PM   #1
neptune
Calendar User
 
neptune is offline
Join Date: Jun 2005
Location: Las Vegas
Posts: 2
Default MySQL startDate Field

I am creating a custom list of events on my home page from the data in the epc_calendar table. However, I am having trouble with the startDate field, as it appears to be encrypted.

How do I convert the startDate to yyyy-mm-dd (or any other understandable) format?

I'm pretty new to PHP and mySQL, so please bear with me.
 

Old 06-23-2005, 07:51 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

That is a Julian Day Number.

http://us2.php.net/manual/en/function.juliantojd.php

__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Convert startDate to mm.dd.yyyy
Old 06-23-2005, 09:11 PM   #3
neptune
Calendar User
 
neptune is offline
Join Date: Jun 2005
Location: Las Vegas
Posts: 2
Default Convert startDate to mm.dd.yyyy

Thanks for the tip! Here's my solution, if anyone else is curious:

It shows the date in this format mm.dd.yyyy

<?php
$mydate = jdtogregorian($row['startDate']);
?>
<?=date("m.d.Y", strtotime($mydate));?>

(I am looping, which is why my startDate variable looks like $row['startDate'])
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
startDate & endDate liaok General Support 1 08-23-2005 05:08 PM
MySQL selected but still using flat-file? straw-man General Support 5 06-30-2005 02:12 PM
Using a "|" in a text field jabi General Support 2 05-10-2005 12:02 PM
MySql setup problem (newbe) nigel General Support 2 12-18-2003 11:05 AM



All times are GMT -4. The time now is 05:38 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |