Hi Experts,
I want a datetime variable to be stored as 12:00 am in the sql2 table.
I have done the following:
DateTime LastCouponDate = System.Data.SqlTypes.SqlDateTime.MinValue.Value;
String.Format("{0:t tt}", LastCouponDate);
This returns lastcoupondate as 1/1/1753 12:00:00 AM.
This gives me some error during processing. How do I get rid of 1/1/1753?
Thanks
Shilpi