Questions tagged [date]
A date is a reference to a particular day represented within a calendar system, and consists of year, month and day. Use for questions about creating, manipulating and storing date information. Use with any relevant language tags.
76,985
questions
4
votes
5
answers
14k
views
How do I work with quarters (quarterly dates) in ASP.Net using VB.Net 2.0?
I know that Sql Server has some handy built-in quarterly stuff, but what about the .Net native DateTime object? What is the best way to add, subtract, and traverse quarters?
Is it a bad thing™ to use ...
102
votes
14
answers
47k
views
Why does Javascript getYear() return a three digit number?
Why does this javascript return 108 instead of 2008? it gets the day and month correct but not the year?
myDate = new Date();
year = myDate.getYear();
year = 108?
0
votes
3
answers
2k
views
Unix gettimeofday() - compatible algorithm for determining week within month?
If I've got a time_t value from gettimeofday() or compatible in a Unix environment (e.g., Linux, BSD), is there a compact algorithm available that would be able to tell me the corresponding week ...
54
votes
14
answers
142k
views
How do I convert a date/time to epoch time (unix time/seconds since 1970) in Perl?
Given a date/time as an array of (year, month, day, hour, minute, second), how would you convert it to epoch time, i.e., the number of seconds since 1970-01-01 00:00:00 GMT?
Bonus question: If given ...
10
votes
9
answers
7k
views
How to get a table of dates between x and y in sql server 2005
I just want a quick way (and preferably not using a while loop)of createing a table of every date between date @x and date @y so I can left outer join to some stats tables, some of which will have no ...
4
votes
7
answers
9k
views
Need a free datepicker for ASPX [closed]
What is the best FREE Datepicker that can be dropped into an ASPX application?
3
votes
8
answers
744
views
Non-iterative / Non-looping Way To Calculate Effective Date?
I have a table called OffDays, where weekends and holiday dates are kept. I have a table called LeadTime where amount of time (in days) for a product to be manufactured is stored. Finally I have a ...
2
votes
5
answers
2k
views
Elapsed time without considering weekends and bank holidays in Java
I've implemented a stopwatch that works fine without considering that bank holidays and weekends shouldn't be counted in the total duration. I was looking for some open-source library where I could ...
10
votes
15
answers
2k
views
What languages do date, time, and calendar operations really well? [closed]
This is probably too much to ask, but is there any language that does a really terrific job of representing time and date operations? I'll grant straight away that it's really hard to write a truly ...
3
votes
3
answers
2k
views
Date Component Manipulation
Is it possible to manipulate the components, such as year, month, day of a date in VBA? I would like a function that, given a day, a month, and a year, returns the corresponding date.
3
votes
4
answers
6k
views
Time Parsing in Flex
Is there any way to parse a string in the format HH:MM into a Date (or other) object using the standard libraries?
I know that I can parse something like "9/17/2008 10:30" into a Date object using
...
10
votes
5
answers
15k
views
How to get date picture created in java
I would like to extract the date a jpg file was created. Java has the lastModified method for the File object, but appears to provide no support for extracting the created date from the file. I ...
36
votes
7
answers
22k
views
Deserializing Client-Side AJAX JSON Dates
Given the following JSON Date representation:
"\/Date(1221644506800-0700)\/"
How do you deserialize this into it's JavaScript Date-type form?
I've tried using MS AJAX JavaScrioptSerializer as shown ...
1
vote
4
answers
1k
views
Given two dates what is the best way of finding the number of weekdays in PHP?
The title is pretty much self explanatory. Given two dates what is the best way of finding the number of week days using PHP? Week days being Monday to Friday.
For instance, how would I find out that ...
5
votes
10
answers
8k
views
How do you convert 00:00:00 to hours, minutes, seconds in PHP?
I have video durations stored in HH:MM:SS format. I'd like to display it as HH hours, MM minutes, SS seconds. It shouldn't display hours if it's less than 1.
What would be the best approach?