The week in .NET – On .NET with Brett Morrison, DateTime Extensions

Bertrand Le Roy

Previous posts:

On .NET: Brett Morrison

During the Build conference, I caught up with my friend Brett Morrison. Brett is an entrepreneur, executive, and hands-on developer, who has been using Microsoft products and .NET throughout his career. He founded startups, such as Onestop and ememories, and also worked for SpaceX.

Package of the week: DateTime Extensions

Date calculations can be tricky, but if you need to take holidays into accounts, things become really complicated. The DateTime Extensions project knows holidays for two dozen cultures, and can perform calculations taking them into account.

DateTimeCultureInfo pt_ci = new DateTimeCultureInfo("pt-PT");
DateTime startDate = new DateTime(2011, 4, 21);

//21-04-2011 - start
//22-04-2011 - holiday
//23-04-2011 - saturday
//24-04-2011 - sunday
//25-04-2011 - holiday
//26-04-2011 - end

DateTime endDate = startDate.AddWorkingDays( 1, pt_ci);
Assert.IsTrue(endDate == startDate.AddDays(5));

Meetup of the week: Donovan Brown – Zero to DevOps and Database DevOps in Cambridge

DevOps is about people, process and products. Getting it all right requires effort but the benefits to your organisation and customers can be huge. In this demo-heavy session, Donovan Brown will show you how to go from “zero to DevOps” like a pro. Starting from just a blank desktop, he will create a new team project and a complete pipeline. He will also deploy an ASP.NET MVC application into Azure all live and hands on.

This meetup is on Monday, June 12, in Cambridge. It’s hosted by the Cambridge .NET User Group.





There is more content available this week in F# Weekly. If you want to see more F# awesomeness, please check it out!





And this is it for this week!

Contribute to the week in .NET

As always, this weekly post couldn’t exist without community contributions, and I’d like to thank all those who sent links and tips. The F# section is provided by Phillip Carter, the gaming section by Stacey Haffner, the Xamarin section by Dan Rigby, and the Azure and UWP section by Michael Crump.

You can participate too. Did you write a great blog post, or just read one? Do you want everyone to know about an amazing new contribution or a useful library? Did you make or play a great game built on .NET? We’d love to hear from you, and feature your contributions on future posts. Please add your posts, it takes only a second.

We pick the articles based on the following criteria: the posts must be about .NET, they must have been published this week, and they must be original contents. Publication in Week in .NET is not an endorsement from Microsoft or the authors of this post.

This week’s post (and future posts) also contains news I first read on The ASP.NET Community Standup, on Weekly Xamarin, on F# weekly, and on The Morning Brew.


Discussion is closed.

Feedback usabilla icon