dim today as datetime = DateTime.Now
dim date1 as integer = day(today)
มัน error ว่า
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30469: Reference to a non-shared member requires an object reference.
Source Error:
Line 84: dim today as datetime = DateTime.Now
Line 85: dim date1 as integer = day(today)