on 10-18-2005 4:13 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.