Author: esthera | Posted on: 7/14/2008 1:10:23 AM | Views : 605

i'm new to asp.net
how would format a date from 14/07/2008  to 20080714
in asp i use the following function but having trouble converting it.
Function cIsoDate(dteDate)

   If IsDate(dteDate) = True and not isnull(dtedate) Then
      DIM dteDay, dteMonth, dteYear
      dteDay = Day(dteDate)
      dteMonth = Month(dteDate)
      dteYear   = Year(dteDate)
      cIsoDate = dteYear & _
          Right(Cstr(dteMonth + 100),2) & _
          Right(Cstr(dteDay + 100),2)
   Else
      cIsoDate = Null
   End If
End Function

...

Go to the complete details ...