This...
<AjaxPro.AjaxMethod()> _
Public Function GetTheDate(ByVal TheDate as DateTime) as String
Return TheDate.ToShortDateString
End Function
Does not work.
But, this...
<AjaxPro.AjaxMethod()> _
Public Function GetTheDate(ByVal TheDate as String) as String
Return cDate(TheDate).toShortDateString
End Function
Does. Apparently, any type conversions involving dates need to be done inside the function, rather than passed through the function.
Print | posted on Monday, November 28, 2005 3:15 PM