Ok when my program loads i want txtdate to automatically display the current date in this format
DD/MM/YYYY
simple i know but having difficulties.
Printable View
Ok when my program loads i want txtdate to automatically display the current date in this format
DD/MM/YYYY
simple i know but having difficulties.
VB Code:
txtDate.Text = Format$(Now, "DD\/MM\/YYYY")
\ characters prevent the default date formatting from happening, without them the separating characters would appear using the computer's locale settings.