ds3231 date wont change

Hello,

Im fairly new here so i hope I’m posting in the right sub section. I am trying to have my ds3231 RTC module provide the proper date, however it wont update from 01.01.2000.
I can set the time and DOW with no issues. I am using the example code for the ds3231, but have included it below. Any feedback would be appreciated.

Thank you!

#include <DS3231.h>

DS3231 rtc(SDA, SCL);

void setup()
{
// Setup Serial connection
Serial.begin(115200);

// Initialize the rtc object
rtc.begin();

// The following lines can be uncommented to set the date and time
rtc.setDOW(SATURDAY); // Set Day-of-Week to SUNDAY
rtc.setTime(13, 33, 0); // Set the time to 12:00:00 (24hr format)
rtc.setDate(3, 24, 2018); // Set the date to January 1st, 2014
}

void loop()
{
// Send Day-of-Week
Serial.print(rtc.getDOWStr());
Serial.print(" ");

// Send date
Serial.print(rtc.getDateStr());
Serial.print(" – ");

// Send time
Serial.println(rtc.getTimeStr());

// Wait one second before repeating
delay (1000);
}

Post a link to the actual DS3231 library that you are using. There are many.

Please use code tags ("</>" button) when posting code.