Jump to content

Need little help with idea for event calendar


tslid

Recommended Posts

Hello guys

 

I am developing my own system with event calendar but I stucked in the part where I should mark in the same way event which continue more than one day.What is my point - lets take for example google calendar, here you can see how the bar is purple for all 3 days marked for street cleaning : http://www.file-extensions.org/imgs/app-picture/6718/google-calendar.jpg

 

Can you give me only an idea how I should proceed,what to use to achieve such result,what are my best options ?

 

Thank you

Link to comment
Share on other sites

Sorry for absence of code block which in the case would help but my thought was has anyone idea how google did this,I just need an idea how to implement such feature - I will deal with the code but I cant figure it out.

 

Regards

Link to comment
Share on other sites

Simple, in your database for events have a startdate and enddate. If an event is only for a single day you could leave the enddate null or you could populate it with the same date as startdate. Or, alternatively, you could have startdate and days, where days is the number of days for the event.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.