cancel
Showing results for 
Search instead for 
Did you mean: 

.Net Connector and DateTime Fields

Former Member
0 Kudos

Why the RfcField of type RFCTYPE_DATE aren't converted to .Net DateTime (but to string)? Is it possible to instruct the .Net Connector proxy generator to follow the RFC types?

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

I don't exactly remember what the reason for the design desision was to keep RFC_DATE as string. Maybe conversion to DateTime was considered to be too slow, especially if you pass dates between proxy functions (which would create unesseray conversion to and from DateTime).

Anyway, there is are nice conversion functions available in (static) class "RfcConvert":

RfcDateToDateTime: Converts a RFC_DATE type to a .NET DateTime

DateTimeToRfcDate: Converts a .NET DateTime type to RFC_DATE type

RfcTimeToTimeSpan: Converts RFC_TIME type to .NET TimeSpan type

TimeSpanToRfcTime: Converts .NET TimeSpan type to RFC_TIME type

Answers (0)