• Resolved karl1206

    (@karl1206)


    I’m trying to manipulate the date that is outputted for an event as I need to to display the date in a certain way within the template file. I’m using the following code as a starter before I manipulate the individual day/month/year

    $event_start_date = display_event_start_date();
    date('d', strtottime($event_start_date));

    The above code basically does nothing and still just outputs the date as the default format. Surely the function just outputs the value as a string, any ideas why I can’t manipulate it?

Viewing 1 replies (of 1 total)
  • Thread Starter karl1206

    (@karl1206)

    Found the solution… I was using display_ instead of get_
    The code should of been the following

    $event_start_date = get_event_start_date();
    date('d', strtottime($event_start_date));
Viewing 1 replies (of 1 total)

The topic ‘Change date output’ is closed to new replies.