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 ...