Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass a date as a parameter
Message
From
11/07/2012 07:56:55
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01547794
Message ID:
01548159
Views:
41
Were you able to get the table valued parameter thing working?

>Hi Viv.
>Yes, looks like its a DateTime so I can work with that.
>Regards,
>Gerard
>
>
>>>Hi Viv. Thanks for replying.
>>>The actual parameter is coming from a 3rd Part Date control (Just allows entry of dates) and I want to pass this as a parameter to a method
>>
>>Ah. Then it will depend on the control. If it's a .NET control then it probably *is* passing a DateTime (with a time of midnight). If that doesn't work then experiment - Bill's suggestion would be a good start.....
>>
>>>>>Hi.
>>>>>I want to passs a Date (Not dateTime) as a parameter to a C# method, but intellisense does not bring up an option for a Date in the Method
>>>>>Is this possible ?
>>>>
>>>>No. There is no such thing as Date in .NET. What is the actual parameter ? (you can pass DateTime.Date but it is still a DateTime)


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform