looking for equivalent VB.net statement for excel dateserial

This is the excel VBA  statement.
Thenumber  = DateSerial(Year(Date), Month(Date), 1)

What is the VB.net equivalent.

Thank you.
peispudAsked:
Who is Participating?
 
mankowitzConnect With a Mentor Commented:
it should be the same. Make sure you include the Microsoft.VisualBasic.DateAndTime namespace.
0
 
peispudAuthor Commented:
Thank you very m;uch
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.