以下のコードの結果が (-1) になるのはなぜですか?
startDate が7/9/12 5:00:00 AMに設定されている場合、compareValue は 1 を返します。以下のシナリオでは正の 1 が期待されますが、(-1) が返されます。
startDate = "7/16/2012 5:00:00 AM"
endDate = "7/17/2012 5:00:00 AM"
//enter code here
int compareValue = startDate.CompareTo(endDate);