I have ISO8601 date time format (e.g 2000-02-29T12:45:00+02:00). I must convert it to double.
I'm getting this values from database:
std::string _date = ((char*)sqlite3_column_text(statement, 0) != NULL) ? (char*)sqlite3_column_text(statement, 0) : "0";
And I try convert like that:
value.dateTime = atof(_date.c_str());
For all of dates in database I get the same values