简体   繁体   中英

Crystal report, error during runtime in VS.. error converting string to date

crystal report code

*date(val(left({?@DATEFROM},4)),
val(mid({?@DATEFROM},5,2)), 
val(right({?@DATEFROM},2)))*

these set of codes are working during the preview in crystal report XI, but during the runtime in VS 2013 it outputs error. "The field name is not known, Details errorKind...Error in formula.. the field name is not known."

Are there other way I can convert string to date without error in Visual Studio?Thanks

从参数名称中删除@字符。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM