Thank you for replying.
In my case I use JQuery to retrieve the selected date like this:
SelectedDate = dpTest.val();
When I debug, I find that the "SelectedDate" variable type here is "String". And it's in the format I mentioned before, that is for example, "2012-12-13-08-02-05" [corresponding to 13/12/2012 08:02:05].
And after sending this value to the asmx webservice end, it's received in the same format: "2012-12-13-08-02-05" [corresponding to 13/12/2012 08:02:05].
When, in the webservice, I write:
Datetime = Convert.ToDateTime(SelectedDate)
I get an error when I run this that the received String, that is "SelectedDate" is not recognized to be in a valid Datetime format.
My question, put in another way, would be: is there any way to manipulate the String that is produced from "dpTest.val()" in the first place to be in a valid recognizable Datetime format? To be specific, in the format "dd/MM/yyyy HH:mm:ss"?