Date-Time Format Strings tutorial vb.net
Imports System.Threading
Imports System.Globalization
Imports System.Text
Public Class Form1
Private formHasLoaded As Boolean = False
Private cultureValue As String
Private Sub DateTimeChech()
Dim dtmNow As DateTime = Now
Dim sb As New StringBuilder()
sb.Append("When using " & cultureValue & " CultureInfo, today's date and time will format as follows:")
sb.Append(vbCrLf)
sb.Append(vbCrLf)
AppendLine(sb, dtmNow.ToString("d"), " Short date pattern")
AppendLine(sb, dtmNow.ToString("D"), " Long date pattern").....
Imports System.Threading
Imports System.Globalization
Imports System.Text
Public Class Form1
Private formHasLoaded As Boolean = False
Private cultureValue As String
Private Sub DateTimeChech()
Dim dtmNow As DateTime = Now
Dim sb As New StringBuilder()
sb.Append("When using " & cultureValue & " CultureInfo, today's date and time will format as follows:")
sb.Append(vbCrLf)
sb.Append(vbCrLf)
AppendLine(sb, dtmNow.ToString("d"), " Short date pattern")
AppendLine(sb, dtmNow.ToString("D"), " Long date pattern").....