Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing system short date format vb.net 2010

Status
Not open for further replies.

vijithamar

Programmer
Feb 14, 2002
29
IN
How to change short date format to "dd/MM/yyyy" at run time.

please help
 


hi,

Dates are PURE NUMBERS!

Formats are just that; a TEXT DISPLAY of the date. Your code can DISPLAY the date any way you choose.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Code:
'Declare variable
Dim dteResults As Date

'Get the current date and time
dteResults = Now


 MessageBox.Show("Modified: " & dteResults.ToString("dd / MM / yyyy"), "Date Demo")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top