266
голосов
24ответов
143667 просмотров

Displaying the build date

I currently have an app displaying the build number in its title window. That's well and good except it means nothing to most of the users, who want to know if they have the latest build - they tend to refer to it as "last Thursday's" rather than build 1.0.8.4321. The plan is to put the build d...

0
голосов
2ответов
824 просмотров

Wordpress: If two or more posts have same date, date is not shown

Got a weird bug best shown by this page http://www.zoecormier.com/freelance/ Scroll down to the article named 'Testing turnitin' and you will see the article date is not showing. The article above it (named 'Stolen words') is showing the date. These two articles have the same date, but only one ...

0
голосов
6ответов
849 просмотров

bash : Make job every x days

I have a bash script runned every day via cron. In this bash I want to run some command but only every x day (x is fixed and will be 3, 4 or 5 I don't know at the moment) I can test if the remainder of the division day of month / x equal 0 day_of_month % x = 0 I will work on a single month bu...

2
голосов
4ответов
1778 просмотров

Warning: date() [function.date]:

Does anyone know where I can read the documentation for the solution to this warning. I can search for the warning and I just get a phonebook worth of pages that have the same problem. Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required...

1
голосов
7ответов
6037 просмотров

C# lists - sorting date problem

I have a C# list collection that I'm trying to sort. The strings that I'm trying to sort are dates "10/19/2009","10/20/2009"...etc. The sort method on my list will sort the dates but the problem is when a day has one digit, like "10/2/2009". When this happens the order is off. It will go "10/19/2...

19
голосов
9ответов
60499 просмотров

How can i get the current month and previous three months using PHP

Will any one tell me how to get the current month and previous three months using PHP For example: echo date("y:M:d"); output will be: 09:Oct:20 But i need: August September October as the Output. Thanks in advance... Fero

1
голосов
2ответов
5444 просмотров

javascript conversion of yyyy-mm-dd hh:mm:ss aa help

can anybody spot any mistake in this function? .. This is a function which receives a string of type yyyy-mm-dd hh:mm:ss aa and converts to UTC and builds up a string yyyy-mm-dd hh:mm:ss. function LocalTimetoUTC(localTime) { var time = localTime.split(" "); //Received :- yyyy-mm-dd hh:mm:ss...

1
голосов
1ответов
88 просмотров

is my mysql query correct? (does not seem like it)

I want to select data between 1 week ago data until today data: SELECT username, email, date FROM users WHERE date(date) BETWEEN (CURDATE() AND (CURDATE() - 7)) ORDER BY userid DESC LIMIT 10 Hope you guys can help me. It does not work!!! This question has been answered by ...

3
голосов
4ответов
497 просмотров

Merge like dates in MS Access

I am a pilot who flies multiple legs in a day. The software I use to log flights spits out a csv file and lists every leg separately. I import the csv file into table 1 in ms access. I would like to merge all flights from the same day into one record on a new table. My problem is combining th...

1
голосов
1ответов
191 просмотров

mysql date storage & query performance with php

I've got a database of historical records from WW2 and currently each recorded event's date is stored in one integer field as YYMMDDHHMM. This makes simple tasks like ORDER BY, or searching for all events within a certain time period extremely easy. However, if somebody wants all events that occu...

0
голосов
3ответов
205 просмотров

PHP timestamp time function: 2008 is larger than 2009?

I don't get it. I want to check if the time out of the database is before or after the current time, so I wrote this: $qVraagCodeOp = "SELECT * FROM `code` WHERE `Code_Code` = '$value'"; $rVraagCodeOp = mysql_query($qVraagCodeOp); $aVraagCodeOp = mysql_fetch_assoc($rVraagCodeOp); $oldTime = mk...

1
голосов
2ответов
3326 просмотров

Disable specific dates in jquery

I am using the jquery date picker found here: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html that allows the user to pick a start and end date. However I want to be able to disable specific dates. I tried to implement the code found here: stackoverflow.com/qu...

16
голосов
17ответов
11745 просмотров

"Date of birth" validation: How far/much would you go?

I'm quite anal about form validation. So while creating a validator for a "data of birth" (DOB) field in one of my current projects for a job application form (platform/language is neutral in this context), I wanted something to prevent 'punky' inputs. I used a date picker and restricted the max...

0
голосов
3ответов
2023 просмотров

how to know if between 2 date's it past 5 days - Oracle 10g?

I have two date's: 1) 01/05/2009 2) 06/05/2009 How can I know if there's 5 days between them?

4
голосов
3ответов
997 просмотров

Javascript Date to IS8601 format?

I am learning javascript and I am trying to figure out if there is a simple way to convert a standard formatted Date to ISO8601 format (YYYY-MM-DDThh:mm:ssTZD). Advices?

173
голосов
34ответов
626765 просмотров

How to calculate age (in years) based on Date of Birth and getDate()

I have a table listing people along with their date of birth (currently a nvarchar(25)) How can I convert that to a date, and then calculate their age in years? My data looks as follows ID Name DOB 1 John 1992-01-09 00:00:00 2 Sally 1959-05-20 00:00:00 I would like to see: I...

64
голосов
4ответов
13008 просмотров

Why is the Java date API (java.util.Date, .Calendar) such a mess?

As most people are painfully aware of by now, the Java API for handling calendar dates (specifically the classes java.util.Date and java.util.Calendar) are a terrible mess. Off the top of my head: Date is mutable Date represents a timestamp, not a date no easy way to convert between date compo...

3
голосов
10ответов
15621 просмотров

calculate date add, but only weekdays

I would like to calculate a new date simply by using the build-in dateadd function, but take into account that only weekdays should be counted (or 'business days' so to speak). I have come up with this simple algorithm, which does not bother about holidays and such. I have tested this with some ...

0
голосов
3ответов
1727 просмотров

In Sharepoint, I want to trigger a workflow automatically every month which shows only the lists which has that particular months date

I am new to sharepoint... I have a question: I have a list with many documents in it. I have a date column in that list. For each month I would like to view only that particular month's list (i.e) select the list which has that month in the date field. I would like the list to get updated each m...

0
голосов
3ответов
102 просмотров

Date conversion from db to display

I'm reading a datetime field from mysql db. I'd like to convert it in PHP: from: 2009-05-23 14:46:23 to 05/23/2009 02:46 pm Notice the am/pm conversion. Thanks in advance..

2
голосов
3ответов
820 просмотров

ms access date and time. Time must be 7:00 AM and user must not edit time

I have a form where users input information for a test run on a particular date. This creates a table that i then link with another table based on the date and an ID. In this other table (filled by a form created by someone else) all of the times are 7:00 AM. Whoever created the form for that ...

8
голосов
2ответов
3671 просмотров

Date as simple text (e.g. Today, Yesterday, 1 Week Ago) in .Net

Does anyone have a simple function to hand for converting a date to a simple string (using .Net)? E.g. 14-Oct-09 would read "Today", 13-Oct-09 would read "Yesterday" and 7-Oct-09 would read "1 Week Ago" etc... Cheers, Tim

1
голосов
5ответов
1104 просмотров

Sorting nearest date with MySQL

I have a simple task list which contains amongst others a title field and a deadline field. Some tasks got deadlines, other don't. Deadlines are simply stored with a MySQL date type. But the tough part (for me anyway) is to sort the tasks in the correct order: Ascending deadlines The rest (may...

0
голосов
1ответов
695 просмотров

Triggering workflow automatically by a particular date

I am new to Sharepoint. I have a list where the date is given in a column and on that particular date the workflow must automatically trigger. I went to sharepoint designer but couldn't set the value to date. How do I trigger a workflow automatically by a particular date?? Please help. I wo...

0
голосов
1ответов
1387 просмотров

Deselect previous date in jquery date picker

I want to validate start date and end date.For this purpose in jquery datepicker, i want to deselect or disable the previous date from the selected start date.Any body knows please help me

4
голосов
3ответов
1405 просмотров

Why is java.util.Date's setTime() method not deprecated?

All the other mutators got deprecated back in JDK 1.1, so why was setTime() left as is? Surely java.util.Calendar - the correct way to manipulate dates - can create new instances of java.util.Date as needed using the java.util.Date(long) constructor?

1
голосов
6ответов
460 просмотров

How Many Days have occured during a Given Timespan

If we have date range such As: 1st October 2009 - 20th October 2009 Can we calculate how many Mondays have occured during The answer to this would be (3) M T W T F S S *1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 *20 21 22 23 24 2...

442
голосов
44ответов
640394 просмотров

Calculating the difference between two Java date instances

I'm using Java's java.util.Date class in Scala and want to compare a Date object and the current time. I know I can calculate the delta by using getTime(): (new java.util.Date()).getTime() - oldDate.getTime() However, this just leaves me with a long representing milliseconds. Is there any simp...

2
голосов
5ответов
4822 просмотров

How can I use Perl to do datetime comparisons and calculate deltas?

I extracted year, month, day, hour, minute, second, and millisecond data from human readable text (it wasn't in a timestamp format, but rather something like "X started at HH:MM:SS.SSS on DD MMM YYYY and ended at HH:MM:SS.SSSS on DD MMM YYYY"), so for each recorded event, I have each of the value...

0
голосов
3ответов
189 просмотров

gmt or without gmt

this might be stupid question, but ill ask anyway. do i really need to implement gmt on site to get proper timestamp on a post? well im building a site like twitter. my feeds are working fine and showing me the time i need, like it shows "posted 11 minutes, posted yesterday, posted 5 days ago.....