Hi all,
I can't seem to figure out what is wrong with my code. Maybe it would be simpler to just compare date and not time. Not sure how to do this either and I searched but couldn't find my exact problem.
BTW, when I display the two dates in an alert, they show as exactly the same.
My code:
window.addEvent('domready', function() {
va...
I'd like to show in our app when the latest production deploy was made, as a means of showing an ongoing commitment to improvement, etc, etc.
Off the top of my head I'm thinking of getting a last_updated_at from one of the files, but I'd like to hear other thoughts.
What's the best way to get the date of the latest production deploy ...
I.e.
Month Returns
January 1
February 2
March 3
April 4
May 5
June 6
July 7
August 8
September 9
October 10
November 11
December 12
I've seen examples using mktime when given the number of the month and returning the month string, but not the reverse.
...
I want to make a little free calendar program to help me and others calculate how much time we have got left in a project. I mean real working time, not just time. Time in a raw form is not saying much.
Typically when my boss tells me that I have time until 05-05-2011 it doesn't tell me really how much time I have to do my job.
You kno...
Hi,
I am working on a calendar that will show bookings. The height of containing the booking is calculated dynamically in proportion to the length of the booking. The following code works perfectly well in Firefox but not in Safari or Opera:
function calculateBookingHeight(from, to) {
var today = new Date;
var end = new Date....
How can I parse a pubDate from a RSS feed to a Date object in java.
The format in the RSS feed:
Sat, 24 Apr 2010 14:01:00 GMT
What I have at the moment:
DateFormat dateFormat = DateFormat.getInstance();
Date pubDate = dateFormat.parse(item.getPubDate().getText());
But this code throws an ParseException with the message Unparseable d...
how do you format a date into the format 30-Apr-10 in javascript?
...
I want to display 1 random record from a database based on the week.
I need to determine if it's a new, and if it is a new week, then select the record and display the new record.
I'm thinking I can just use a single day of the week to generate the new record, either way will work.
I'm really having a hard time conceptualizing how I...
Hi there,
I'm writing an ad booking system for our site. Ads are booked in with a StartDate and EndDate field to indicate how long they're online for.
When adding a new advert, I have a quick validation check to make sure the new ad doesn't clash with an existing ad that's booked into the same position.
I thought I had it with this qu...
I am trying to create some Issue Filters in JIRA based on CreateDate.
The only date/time function I can find is Now() and searches relative to that, i.e. "-1d", "-4d" etc.
The only problem with this is that Now() is time specific so there is no way of getting a particular day's created issues.
i.e. Created < Now() AND Created >= "-1d"...
I've used boost::gregorian::date a bit now.
I can see that there are the related months & years & weeks duration types.
I can see how to use known durations to advance a given date.
Qu: But how can I get the difference between two dates in months (or years or weeks) ?
I was hoping to find a function like:
template<typename DURATION>
...
I'm trying to figure the best way to query a date range from rails...I looked around on Google but am unsure about how to use this syntax.
I have a Model that has various events and I like to add to my find condition a caveat that should only show events where the field :st_date is today or later, in effect only show me data that is cur...
In Ruby, what's the best way to convert a string of the format: "{ 2009, 4, 15 }" to a Date?
...
Hi , can someone help me what would be the regular expression in java for the string "Feb. 26, 2009 8:08 AM PST"????
...
Hello,
There is another similar question to mine on StackOverflow (How to get creation date of a file in Java), but the answer isn't really there as the OP had a different need that could be solved via other mechanisms. I am trying to create a list of the files in a directory that can be sorted by age, hence the need for the file creat...
Hi.
Should we use de java.util.Date object in java?
It has so many Deprecated methods that is a little anoying to have to use a complex method to something that should be so simples.
I am using something stupid to emulate getDate() like:
public static int toDayMonth (Date dt)
{
DateFormat df = new SimpleDateFormat("dd");
S...
Hello World,
I have a class Movie
in it i have a start Date, a duration and a stop Date.
Start and stop Date are Date Objects (private Date startDate ...)
(It's an assignment so i cant change that)
now i want to automatically calculate the stopDate by adding the duration (in min) to the startDate.
By my knowledge working with the time ...
I'm creating an email using String Template but when I print out a date, it prints out the full date (eg. Wed Apr 28 10:51:37 BST 2010). I'd like to print it out in the format dd/mm/yyyy but don't know how to format this in the .st file.
I can't modify the date individually (using java's simpleDateFormatter) because I iterate over a col...
Hello guys,
I'm using date:format-date template EXSLT file I'm using XSLT 1.0 and MSXML3.0 as the processor.
My date:format-date template EXSLT file's declaration is:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:date="http://exslt.org/dates-and...
I'm developing a website that will need to be mobile friendly allowing users to select a date range.
Any help will be appreciated.
...