You cannot post messages because only members can post, and you are not currently a member.
|
Localizing time from UTC dates
|
| |
Hey all, My localizing function works pretty well. It parses a UTC date (given by my database) on the page and uses jQuery to replace the text with a local time. I successfully get the UTC offset hours and add it to the UTC date to get the local time. The problem I am having is that the toString(format) method is not... more »
|
|
A simple question from a newbie.....
|
| |
Where does date.js get the date from?
Is it the computer it is running on? The server a website is hosted
on?
Or am I missing something?
Thanks
|
|
Get Last Week (Sun-Sat)
|
| |
Hi,
Lib is really a very great work
However, I have an issue i want to get last week from Sunday to
Saturday. '1 week ago' always show last Wednesday if today is
Wednesday but i want last week from Sunday to Saturday so if today is
12-09-2009 i want to get date 11-29-2009 or say first day of last week... more »
|
|
Translated "tr-TR" Turkish(Turkey)
|
| |
I've tested this and it works perfectly fine with Turkish words now.
Thank you.
/**
* Version: 1.0 Alpha-1
* Build Date: 13-Nov-2007
* Copyright (c) 2006-2007, Coolite Inc. ([link]).
All rights reserved.
* License: Licensed under The MIT License. See license.txt and
[link].... more »
|
|
Allowing only future dates?
|
| |
I have a scenario where datejs is parsing dates from a field that
conceptually will only ever have future dates in it. Is there a way
to give a hint to .parse() to tell to expect future dates? For
example, if today is a 12/2/09 (a wednesday) and someone types
"Tuesday", it would parse into 12/8/09. Also, if someone types in... more »
|
|
Can someone post a simple example showing how to use datejs with a form input
|
| |
I'm trying to incorporate Datejs into a form I'm building, and I'd
basically like to replicate the "Mad Skillz" example from the datejs
homepage. The form asks for a date for an event to start, which I'd
need to pass as a variable to a mysql database (using PHP).
Could someone please post a simple implementation of this (not the sql... more »
|
|
parsing date from variable
|
| |
Hi,
I am using date.js as part of a greasemonkey script and want it to
parse a date from the target page which I have set in a variable.
However, I can't seem to get this to work.
My current code looks like:
var d1 = Date.parse(myvariablename);
alert(d1.toString('dddd, MMMM d, yyyy'));... more »
|
|
TimeSpan .getHours()
|
| |
Is it possible to return hours in a decimal format?
I have half our increments for a time picker, eg:
9:00am
9:30am
10:00am
and a finish time, I'd like to display a decimal hours next to each:
9:30am (0.5 hours)
10:00am (1 hours)
10:30am (1.5 hours)
at the moment I'm getting something like:... more »
|
|
|