View Single Post
  #1 (permalink)  
Old May 8th, 2009, 09:07 AM
Nishapd Nishapd is offline
Authorized User
Points: 241, Level: 4
Points: 241, Level: 4 Points: 241, Level: 4 Points: 241, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert a vb.net line to C#

Can anyone help me to convert following vb.net line to C# ?
I am trying to do it following way but somehow it is not working.

vb.net

If dtPmtTransmitDate = System.DateTime.MinValue Or dtPmtTransmitDate = #11:00:00 PM# Then
strPendProcessDate = Format(dtPendProcessDate, "MMddyyyy")
else


C#

if (dtPmtTransmitDate == System.DateTime.MinValue || dtPmtTransmitDate == 23:00:00) {
strPendProcessDate = string.Format("MMddyyyy",dtPendProcessDate);
}
else { }