Tag Archives: Date Functions

How to Calculate the Number of Seconds Since Last Epoch (1/1/1970) in T-SQL

In certain situations, you may need to calculate the number of seconds that have passed since the start of the epoch. In computer world, the start of the epoch most often refers to the Unix epoch, also known as Unix … Read More »»»

Posted in Quick Tips | Tagged , , , , , , , , , , | Leave a comment

Get a Culture-Specific Month Name or a Month Abbreviation

Many a time, you need your application to support multiple languages and thus formats of how things should be displayed. For instance, US uses month/day/year for the date, while Germany uses day.month.year and Russia uses day-month-year. Given that a user … Read More »»»

Posted in C# | Tagged , , , , , , , | 5 Comments