Skip to content

jflood.net

flooding the net, one post at a time…

Microsoft Certified Professional
Microsoft Certified Professional

Twitter Updates

  • @PawelPabich @AnnastaciaMP @ScottMorrisonMP We're measuring hair in minutes now? 9 months ago
  • @gep13 @MRiezebosch Nice one, thanks @gep13 1 year ago
  • @MRiezebosch any idea what the problem with this package is? chocolatey.org/packages/aspne… 1 year ago
  • @alexeyraga If you get a chance go along to this talk tonight by @jamesmarcusbach meetup.com/Sydney-Testers… 2 years ago
  • @alexeyraga Do you never "explore" your work before releasing it in to the wild? 2 years ago
Follow @jfloodnet

Recent Posts

  • NServiceBus, Messaging and RESTful Endpoints
  • Emotiv EPOC and the Event Store – Streams of Consciousness
  • ASP.NET WebApi – Breaking change to MediaTypeFormatters
  • ASP.NET WebApi upload image with custom MediaTypeFormatter
  • POCO’s are allowed to have behaviour…

Categories

  • Action
  • Ajax
  • ASP.NET
  • C#
  • Delegates
  • Func
  • Generics
  • Javascript
  • Messaging
  • Microsoft
  • NServiceBus
  • OOD
  • REST
  • TheEventStore
  • Uncategorized
  • UnitTesting
  • WepApi
  • Windows Azure
  • WP7

ajax Azure C# components Custom Attributes Emotiv EPOC Intergration Tests javascript Kentico MediaTypeFormatter MSTest Object Oriented Design password strength Projections RestEndpoints scripts SOLID TestContext Upload ValidateRequest web.config WebApi

Blogroll

  • Dave Glover
  • Dipesh Avlani
  • Gareth Goodman
  • Lewis Benge
  • Nick Harris
  • Omar Besiso
  • Paul Glavic
  • Phil Haack
  • Phillip Haydon
  • Rick Strahl
  • Sal Mograby
  • Scott Guthrie
  • Scott Hanselman

Archives

  • July 2014
  • February 2013
  • September 2012
  • June 2012
  • May 2012
  • February 2012
  • October 2011
  • December 2010
  • November 2010

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

C#

Monday, Monday.

The following code finds the date of the monday in the current week:

                DateTime mondayThisWeek = DateTime.Now;
                while (mondayThisWeek.DayOfWeek != DayOfWeek.Monday)
                {
                    mondayThisWeek = mondayThisWeek.AddDays(-1);
                }
Comment
November 28, 2010November 28, 2010 jospeh
C#
Blog at WordPress.com.