Solved

looking for equivalent  VB.net statement for excel dateserial

Posted on 2015-01-07
2
125 Views
Last Modified: 2015-01-10
This is the excel VBA  statement.
Thenumber  = DateSerial(Year(Date), Month(Date), 1)

What is the VB.net equivalent.

Thank you.
0
Comment
Question by:peispud
2 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 500 total points
ID: 40537050
it should be the same. Make sure you include the Microsoft.VisualBasic.DateAndTime namespace.
0
 

Author Closing Comment

by:peispud
ID: 40541835
Thank you very m;uch
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Trying to get PDF to open as "Open,Save,Cancel" instead of as a pop-up. 6 43
How to use odbc in vb to connect to ms sql 14 54
VS.net 2010 11 36
VB.net and sql server 4 36
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question