public override void WriteDateTimeText(DateTime dt) { WriteTextNodeWithInt64(XmlBinaryNodeType.DateTimeText, ToBinary(dt)); } private static long ToBinary(DateTime dt)