CrazyManiac
MIS
Hi all!
I'm using CR9 and MS SQL Server. My report has two string parameter fields {?DateBegin}
and {?DateEnd}. Parametrs are passed as strings with default format("dd.mm.yyyy hh:mm:ss"). When parameters are passed to a report I try to convert them to datetime (datetime function) and to pass to SQL server. But if in the regional settings the default date format "dd/mm/yyyy hh:mm:ss PM",
an error occurs "Bad date format string". How can I convert a stirng to a datetime with predifend format?
Thanks for help!
I'm using CR9 and MS SQL Server. My report has two string parameter fields {?DateBegin}
and {?DateEnd}. Parametrs are passed as strings with default format("dd.mm.yyyy hh:mm:ss"). When parameters are passed to a report I try to convert them to datetime (datetime function) and to pass to SQL server. But if in the regional settings the default date format "dd/mm/yyyy hh:mm:ss PM",
an error occurs "Bad date format string". How can I convert a stirng to a datetime with predifend format?
Thanks for help!