ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Increment date automatically based on custom "Date" field

October 29, 2009 12:00pm

Subscribe [1]
  • #1 / Oct 29, 2009 12:00pm

    birdie

    68 posts

    Hi all,

    I’m working on a weekly schedule for a Tennis Club. I have created a weblog for “court_schedule” and have the days set up as Fieldframe matrix tables, so the client just creates a new article, fills in the days / times for each court, from Monday to Sunday.

    For each entry I have a custom field for “Week Commencing”, which contains Monday’s date. What i’d like to do is have the correct date generated for each day of the week based on the “Week Commencing” date, to save the client having to enter a date for each day, as well as the “Week Commencing Date”. 

    The end result would be something like this:

    Week Commencing Monday 26th October 2009

    Monday 26/10/2009
    - Timetable -

    Tuesday 27/10/2009
    - Timetable -

    ...and so on.

    Question is, how do I set it so the EE set “Week Commencing” date is the basis?

    I am pretty crap at PHP, but would something like this work?
    http://stackoverflow.com/questions/277247/increase-days-to-php-current-date


    Thanks!

    Cormac

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases