day (1,283)


Where can I learn more about PyPy's translation function?

I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good docu…


SQL Server: Get data for only the past year

I am writing a query in which I have to get the data for only the last year. What is the best way to do this? SELECT... FROM... WHERE date>'8/27/2007 12:00:00 AM'…


c# - How can I get the DateTime for the start of the week?

How do I find the start of the week(both Sunday and Monday) knowing just the current time in C#? Something like: DateTime.Now.StartWeek(Monday);…


How popular is pair programming?

How popular in the world(I know that the stackoverflow community comes from different parts of the world) is pair programming? Have you ever worked, are you working or will you work for a company t…


Can I stop.NET eating IDs?

I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been getting back into back-end coding again. And, whilst trying to get an HTML prototype integrated and wo…



Get Last Day of the Month in Python

Is there a way using Python's standard library to easily determine(i.e. one function call) the last day of a given month? If the standard library doesn't support that, does the dateutil package suppo…


Get month and year from a datetime in SQL Server 2005

I need the month+year from the datetime in SQL Server like 'Jan 2008'. I'm grouping the query by month, year. I've searched and found functions like datepart, convert, etc., but none of them seem usef…


sql - How do I reset a sequence in Oracle?

In PostgreSQL, I can do something like this: ALTER SEQUENCE serial RESTART WITH 0; Is there an Oracle equivalent?…


Get Last Friday of Month in Java

I am working on a project where the requirement is to have a date calculated as being the last Friday of a given month. I think I have a solution that only uses standard Java, but I was wondering if…


Select current date by default in ASP.Net Calendar control

Let's say I have an aspx page with this calendar control:<asp:Calendar ID="Calendar1" runat="server" SelectedDate=""></asp:Calendar> Is there anything I can put in for SelectedDate to make it use…




date get from month how week time current format and