Last post Jun 29, 2015 01:02 AM by Vinutha.N
Jun 26, 2015 06:36 AM|Vinutha.N|LINK
Unable to check the date is exists are not in Taiwan language
Here is the code
if (EffectiveStartDate.Date != new DateTime(1800, 01, 01).Date && EffectiveStartDate.Date != DateTime.MinValue.Date
&& EffectiveEndDate.Date != new DateTime(1800, 01, 01).Date && EffectiveEndDate.Date != DateTime.MinValue.Date)
IsEffectiveDatesDefined = true;
if the dates is defined also in the Taiwan language IsEffectiveDatesDefined is assigned as false.
Thanks in advance
Jun 26, 2015 07:55 AM|PatriceSc|LINK
And the value for EffectiveStartDate and EffectiveEndDate are? Could it be rather because of some issue that would occur when converting a string value to a date, keeping maybe DateTime.MinValue for those dates?
Jun 29, 2015 01:02 AM|Vinutha.N|LINK
EffectiveStartDate is datetime type .
In local this will work fine but in production its giving a issue.