Erich Allen Peterson

Category: .Net General

Calculating Next Invoice Date

Have you have every needed to calculate the date of the next invoice for a customer given their frequency of payment (e.g. monthly or yearly), the day of the month the first invoice was sent out (e.g. 29th, 30th, etc…), and the date of their last invoice? This can be a little complicated. For example, [...]

How to Replace Those Very Stupid MS Word Curly Quotes (aka Smart Quotes)

Want to get replace those “smart quotes” that MS Word uses in your .NET code? This will do it: VB .NET Dim newstr As String newstr = oldstr.Replace(Chr(147), “& quot;”) ‘ take out extra space b/w & and quot; newstr = newstr.Replace(Chr(148), “& quot;”) ‘ take out extra space b/w & and quot; C# string [...]