Hi i’m getting an error when using this code
Session("formatdate") = Left(drv.Row("booking_status"), 10)
Session("formatdate").ToString("dd-MMM-yyyy")
Can anyone suggest anything? I’m trying to convert my session to a friendly date format but it won’t work
This is the error
Too many arguments to 'Public Overridable Function ToString() As String'.
Thanks
Jamie
Left(drv.Row("booking_status"), 10)returns a String.There is no overload for String.ToString() that takes a String as a parameter. You might want to try something like: