General information
Category:
Coding, syntax and commands
>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)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only