Viewing 4 replies - 1 through 4 (of 4 total)
  • Peter Berger

    (@peterpolow)

    It has something to do with the way ACF stores the date in the database. CCS does not recognize it as a date.

    ACF stores the date field as YYYYMMDD, take a look at this page.

    ACF also offer a date & time field. Then the date and time will be stored in the database as Y-m-d H:i:s, take a look at this page.

    I have a working date/time comparison loop, but I’m using my iPhone now so it’s difficult to get the code from my website. Take a look at my post at this forum how I resolved the issue.

    Thread Starter oekoplatt

    (@oekoplatt)

    Hi Peter,

    thank You. I also think the reason is only the formatting of the date field.

    I use minimalistic event manager which created in the database table options:
    post_id 141610
    meta_key _mem_start_date
    meta_value 2019-02-16 13:00

    Maybe this information helps.

    Thank You

    Peter Berger

    (@peterpolow)

    Take a look at my other reply on this forum.

    Thread Starter oekoplatt

    (@oekoplatt)

    HI Peter,

    thank You. I already found at Your post (https://www.ads-software.com/support/topic/before-and-after-for-date-fields-anyone-getting-it-to-work/#post-11240427). Unfortunately I’m unfamiliar with php. So I don’t know how to adapt Your code to my field “_mem_start_date”.

    Please can You suggest it.

    Thank You.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comparison of a custom date field’ is closed to new replies.