I guess the culture settings differ on both machines. Try to supply the format. That explains why the date format is interpreted differently on both machines:
requestRecord.TerminationDate = DateTime.ParseExact
( reader.ReadString("Termination_Date")
, "dd/MM/yyyy"
, CultureInfo.InvariantCulture
);
In this way, you are not depending on the machine and it's settings, but on the format you know.
Depending on what reader
is, you might want to use reader.GetDateTime
, which does all this for you already, for example SqlDataReader.GetDateTime
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…