Change eot of current members

Is there a way that i can change all the current users End of Term date to the same date? Ie i want all accounts to end on December 31, 2017?

I saw this code:

add_action('init', function ()
{
    if(empty($_GET['s2_extend_eot'])
       || $_GET['s2_extend_eot'] !== '[secret key]')
        return; // Nothing to do here.

    $days_to_add = 90; // Extend by 90 days.

    foreach(get_users() as $user)
    {
        if(($eot_time = get_user_option('s2member_auto_eot_time', $user->ID)))
            update_user_option($user->ID, 's2member_auto_eot_time', $eot_time + ($days_to_add * DAY_IN_SECONDS));
    }
    exit('All EOT Times updated.');
});

but don’t want to just add time, i want to set it to a date.

Is this a one-time thing? If so, I’d either export the Member data, change the EOT dates, and then re-import the data.

no, it’s going to have to happen every year.

Are you allowing new Members to register with dates that are out of sync with the “same EOT date” policy? If not, then if you change the EOT one time then everybody will be on the same sheet of music.