pure vb.net format question

  • Thread starter Thread starter Starbuck
  • Start date Start date
S

Starbuck

Hi All

Is there an pure vb.net way of doing the following.

Imports Microsoft.VisualBasic
Format(Now, "dd/mm/yyyy")
Which will return date in string format of 11/02/2005 for example

Thanks in advance
 
All you need to do is

now.tostring("d")

This will use the regional setting to display a short date. But if you want
to hard code the format use

now.tostring("dd/MM/yyyy")

I hope this help

Jon

Hello Starbuck,
 
Sorry, this is one way of doing it.

TextBox1.Text = Format(Now, "dddd, MMM d yyyy")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top