Morning All:
I have written an application with VB.Net that successfully prompts and passes STRINGFIELD parameter values through VB to Crystal Reports. Everything is working great, until I try to pass a Datafield value. None of the formats I tried to pass appear to provide the correct format. The date field requires the yyyy-MM-dd format and I am using the following coded to convert:
dX = String.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(dX))
This code succssfully formats the date from a datetimepicker to the date format needed: (i.e. #2007-02-05# )
If you have successfully passed date values I would love to know what date format you used as the one I am attempting does not work.
I have written an application with VB.Net that successfully prompts and passes STRINGFIELD parameter values through VB to Crystal Reports. Everything is working great, until I try to pass a Datafield value. None of the formats I tried to pass appear to provide the correct format. The date field requires the yyyy-MM-dd format and I am using the following coded to convert:
dX = String.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(dX))
This code succssfully formats the date from a datetimepicker to the date format needed: (i.e. #2007-02-05# )
If you have successfully passed date values I would love to know what date format you used as the one I am attempting does not work.