C# 응용 프로그램을 사용하여 FileHelpers Library에서 csv 파일의 날짜 시간 데이터를 구문 분석하는 데 아주 작은 도움이 필요합니다.FileHelpers에서 Millisecond 형식의 DateTime 문제 C#
+ 0100
20160803T0509가 나는 아래와 같은 코드를 사용하고
ex = {"Error Converting '20160803T0509+0100' to type: 'DateTime'. There are more chars in the Input String than in the Format string: 'yyyyMMdd HH:mm:ss'"}
아래와 같은 오류를 얻고있다 = 나는이 CSV 파일에 사용한 날짜 시간 데이터
[FieldQuoted('"', QuoteMode.OptionalForBoth, MultilineMode.NotAllow)]
[FieldTrim(TrimMode.Both)]
[FieldConverter(ConverterKind.Date, "yyyyMMdd HH:mm:ss")]
private DateTime _ShipmentDateTime;
public DateTime ShipmentDateTime
{
get { return _ShipmentDateTime; }
set { _ShipmentDateTime = value; }
}
는 '형식의 문자열로' "YYYYMMDD # HHMM #####"를 사용하여 시도 적이 있습니까? – Oliver
이 문제는 @ usheeltyagi 해결 되었습니까? – petelids