• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

How to load Textbox with current date (DD/MM/YYYY)

Hello,

When I load my ASP.NET Form, I need to load a textbox with the current date in the following format DD/MM/YYYY. What is the VB.NET code to achieve this?

Thanks,

Victor
0
vcharles
Asked:
vcharles
1 Solution
 
Bill NolanCommented:
textBox.Text = String.Format("{0:MM/dd/yyyy}", DateTime.Now);
0
 
vcharlesAuthor Commented:
Thank You!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now