Posted on: 3/21/2014 3:36:13 PM | Views : 563

How do I convert the following code to C#?
Dim xMonth As String, xDay As String         If Len(Trim(Month(Date.Today))) < 2 Then             xMonth = "0" & Trim(Month(Date.Today))         Else             xMonth = Trim(Month(Date.Today))         End If         If Len(Trim(Day(Date.Today))) < 2 Then             xDay = "0" & Trim(Day(Date.Today))         Else             xDay = (Trim(Day(Date.Today)))         End If

Go to the complete details ...