Error by Day(Now) in a Windows application
Posted on 2012-08-29
In a web application I can use Year(Now), Month(Now), and Day(Now) just as I would expect.
In a Windows application I can use Year(Now) and Month(Now) but NOT Day(Now) and this is certainly not what I would expect. When I use it, I get the error:
Error 1 'Day' is a type and cannot be used as an expression. C:\1. Applications NZ-QM\Windows\SAP Recurring Tool Aid\SAP Recurring Tool Aid\Form1.vb 43 16 SAP Recurring Tool Aid
Can you tell me:
1/ Why can I not use Day(Now)?
2/ How can I then find the day number in a month?