By tag: Date
0
kicks
Easy way to strip time part in sql date time
This explains the easy way to strip time part in sql date time
0
kicks
Automatically Update your Copyright Date
If you’re like me you’ve got a whole slew of web pages that you’ve developed. That means you’ve got a lot of pages to modify every year to update the copyright to reflect the new year.
Instead of hard-coding the year in to your xhtml, replace it with the following code snippet and you’re all set!...
0
kicks
Working with Date-Only and Time-Only data in SQL Server
It's all about using the right data types. Sure, there's no "date" or "time" only data type available, but that's no excuse to return VARCHAR strings formatted as dates or times instead of the correct data type: datetime.
0
kicks
How to get the last day of the week
This sample shows how to get the last day of the current week. It easily could be reconfigured to get any day of the week of any date.
0
kicks
SQL Server: How to store an incomplete date?
How to store an incomplete date in SQL Server?
There are also some cool suggestions in the comments.