π Week 44
Dynamically Changing Date Separators at Runtime in C# & .NET
[C#, .NET]
In our previous post, βWorking With / The Date Separator In C# & .NETβ, we looked at the runtime interpretation of the DateSeparator and how to force display of a particular symbol.
Working With "/" The Date Separator In C# & .NET
[C#, .NET]
When working with DateTime and DateOnly objects, you will inevitably end up outputting them. For this, you will generally need to use /, the date separator.
How To Add Files To The Root Of A Zip File With DotNetZip
[C#, .NET]
I was recently overhauling some code to add a new requirement to generate some files, process them, and add them to the root of the Zip file.
Deleting A Non-Existent File In Python
[Python]
In some earlier posts, βWhat Happens When You Do File.Delete For A Non-Existent File In C# & .NETβ and βWhat Happens When You Delete A Non-Existent File In Javaβ, we looked at how deletion of non existent files was treated in .NET and Java.
Programatic File And Directory HouseKeeping In C# & .NET
[C#, .NET]
In an earlier post, βWhat Happens When You Do File.Delete For A Non-Existent File In C# & .NETβ, I mentioned working on a utility that generated and processed some files.
What Happens When You Delete A Non-Existent File In Java
[Java]
In yesterdayβs post, βWhat Happens When You Do File.Delete For A Non-Existent File In C# & .NETβ, we looked at the intriguing fact that in .NET trying to delete a file that does not exist will not throw an exception.
π Week 43
What Happens When You Do File.Delete For A Non-Existent File In C# & .NET
[C#, .NET]
I was recently writing a small utility that needed to generate files, process them, add them to a zip archive, and then delete them.
Deconstructing A DateTime To Day, Month & Year In C# & .NET
[C#, .NET]
In a previous post, βDeconstructing A DateTime To Day, Month & Year In C# & .NETβ, we looked at how to deconstruct a DateTime into its Date and Time components.
Deconstructing A DateTime to Date and Time in C# & .NET
[C#, .NET]
Recently, I ran into a problem where I needed to extract the Date and Time components from a DateTime.
Getting the System Date in Microsoft SQL Server
[SQL Server]
When it comes to getting the current date and time in Microsoft SQL Server, you have a number of options:
Checking If A Year Is A Leap Year in C# & .NET
[C#, .NET]
A problem you may run into is checking whether a particular year is a leap year.
Passing Date & Time Formats Programmatically In C# & .NET
[C#, .NET]
When formatting a DateTime, a DateOnly or a TimeOnly, you typically pass a format string to help the user interpret the values.
Jekyll Posts Must Have A .md Extension
[Jekyll]
I have mentioned a couple of times that this site is generated using the Jekyll site generator.
π Week 42
Timing Out Tests in C# & .NET
[C#, .NET, Testing]
In unit testing, there are scenarios where you want to exit your test run early.
Beware - Average Computation Gotcha With LINQ in C# & .NET
[C#, .NET, LINQ]
If youβve used .NET in any incarnation, you have doubtlessly used LINQ in some way, shape or form.
π Archives ...