Dt.Mask = "00/00/0000" Dim dtt As Date dtt = Format(Now().ToString("dd/MM/yyyy")) Dt.Text = dtt
Format(...)
String
yyyy-MM-dd
Dim ci As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("en-Us") Dim dt As DateTime = DateTime.Now() Dim df As String = dt.ToString("dd/MM/yyyy", ci) Console.WriteLine($"Date in custom format: '{df}'") 'displays: 'Date in custom format: '30/12/2023'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)