What the heck does this mean:
error CS0019: Operator `-' cannot be applied to operands of type `System.DateTime' and `string'
I'm trying to use it like this:
public static string GetDaysPassedQ01()
{
LoadInformation.LoadStartDateQ01 ();
Debug.Log(StartDateQ01);
today = System.DateTime.Now;
System.DateTime compareDate = today; //.AddDays(0);
System.TimeSpan difference;
difference = compareDate - today;
difference = compareDate - StartDateQ01;
//difference = today - startDate;
Debug.Log("Days Passed: " + difference.Days);
return difference.Days.ToString();
}
NOTE: The **Debug.Log(StartDateQ01);** shows this:
01/05/2017 14:04:48
UnityEngine.Debug:Log(Object)
↧