Welcome to WebmasterWorld Guest from 107.23.176.162
Forum Moderators: ocean10000
' Create Date 6 september 2010
Dim dt As DateTime = New DateTime(2010, 9, 6)
' Convert tyo String
Dim sdt As String = dt.ToString("dd-MM-yy")
' Output should now be "06-09-10"
Response.Write(sdt)
When I used the date field, it kept saving it as x/x/xx.
Dim TestArray() As String = Split(TestString)
Dim TestArray() As String = TestString.Split("/")
Utils.CheckForNull_Text(dr.Item("DATE_DISPLAY"), "/")
Dim myDate As DateTime = dr.Item("DATE_DISPLAY")
dim myYear as Integer = myDate.Year
dim myMonth as Integer = myDate.Month
dim myDay as Integer = myDate.Day
use the slash as the way to break it up?