HowtoASP.NET
Skip to content
  • Tutorials
    • How To Send Email in ASP.NET
    • How to create Web Service in ASP.NET
    • How to create new aspx web page
    • How to use pager in GridView control
    • How to refresh a page in ASP.NET
  • ASP.NET Books
  • ASP.NET Hosting
  • Developers
  • Reference
  • Glossary

How to get the current date in VB.NET

To get the current date in VB.NET you should use DateTime.Now Property:

Best VPN for Developers

‘ Get the current date and time in VB.NET

Dim currentDate As DateTime = DateTime.Now

Related tutorials:

  1. How to set focus on control in VB.NET
  2. How to change the text of the Label control from the code-behind in VB.NET
  3. How to apply CSS style in the Label control from code-behind in ASP.NET in VB.NET
  4. How to programmatically set the TextBox value and get the TextBox value in ASP.NET in VB.NET
Categories: VB.NET Tutorials Tags: asp.net, vb.net
Post navigation
← Colocation ASP.NET Hosting Service Cloud ASP.NET Hosting Service →
Best VPN

Categories

  • ASP.NET
  • For Beginners
  • VB.NET
  • C#
  • MVC
  • Ajax
  • Web Forms
  • Database
    • SQL Server
    • ADO.NET
    • LINQ
    • Access
  • Mobile
  • Security
  • Web Hosting
  • CSS
  • HTML
  • Errors

Most Popular

  • Best ASP.NET Hosting
  • Best ASP.NET Books
  • How to send email
  • How to create Web Service
  • How to create new aspx web page
  • How to use pager in GridView control
  • How to refresh a page
Contact Us | Privacy Policy | Terms

Last Updated 06/17/2025

© 2025 HowtoASP.NET - ASP.NET Tutorials with Examples - All Rights Reserved.

All trademarks are property of their legal owners.
We use cookies to give you the best experience on our website.I accept