datejs Questions

6

Solved

I have to parse a date and time string of format "2015-01-16 22:15:00". I want to parse this into JavaScript Date Object. Any help on this? I tried some jquery plugins, moment.js, date.js, xdate.j...
Weighty asked 17/1, 2015 at 17:38

5

I need a Javascript function that given a timezone, returns the current UTC offset. For example, theFuncIneed('US/Eastern') -> 240
Withstand asked 20/12, 2013 at 21:45

2

Solved

I've been using Date.js in my project and recently read a post that moment.js was superior. However, I'm having trouble believing that it is simply due to the fact that it can't parse input like ...
Jorgejorgensen asked 21/6, 2013 at 19:35

7

Solved

Using Date.js already, but can also use another library if necessary. Not sure what is the best way to work with time deltas. Specifically, I want to display the time that has elapsed between now ...
Matrimonial asked 12/1, 2013 at 20:24

3

Solved

I am using https://github.com/abritinthebay/datejs/ for date formatting due to locale support. However, is it not possible to get a full date time without year? Example Input date:2014/09/20 20:0...
Dispirit asked 30/9, 2014 at 9:0

1

Solved

How do I create a TypeScript web notification with a set timeout? I created the following code but doesn't work in closing the notification before the default timeout: export function createNotif...
Shannon asked 18/12, 2017 at 10:50

3

Solved

I want to add 30 days to current date and get in a format. Im confused to add a 30 to a date and get new. Its pure JS Solution needed. Format : June 10, 2017
Conceal asked 29/6, 2017 at 13:50

3

Solved

Using the javascript library Date.js I am finding that when i pass into the Date.parse() function an ISO 8601 formatted UTC 0 date I am getting an object that is representative of the same date but...
Plight asked 27/8, 2012 at 16:2

2

I'm trying to combine timeago with datejs (with help of this to get format for local time) for timeago I use the following: jQuery(document).ready(function() { jQuery("abbr.timeago").timeago(); ...
Encyclopedia asked 13/9, 2011 at 19:48

2

Solved

I'm using the excellent (but large) DateJS library to handle dates and times in my webapp. I just came across something that I'm not sure how to handle. I want my users to be able to enter Time st...
Yardage asked 25/10, 2010 at 7:49

3

Solved

I am trying to compare two dates which are in Finnish time form like this: dd.mm.YYYY or d.m.YYYY or dd.m.YYYY or d.mm.YYYY. I am having a hard time finding out how to do this, my current code won...
Coracorabel asked 3/8, 2011 at 8:6

2

Solved

I really have no idea what I'm doing wrong here. I can't get Datejs to properly parse "12:00 pm" however, it seems to work fine on other dates. Below is a clip from the Firefox debugger:
Ancelin asked 22/6, 2011 at 18:34

1

Solved

I'm having trouble using datajs with a date format from Google Calendar API. The datetime format I believe is RFC3339 and this is a sample datetime returned from the calendar api 2012-01-05T08:45...
Morra asked 10/5, 2012 at 9:38

1

Solved

I'm using DateJS to parse user-inputted dates, and getting some strange results. Date.parse("15 Jan 2010") returns Fri Jan 15 00:00:00 EST 2010 (right) Date.parse("15-Apr-2010") returns Thu Apr 1...
Bemuse asked 12/3, 2010 at 16:55

2

Solved

I just find out about the power of date js, And its great!!! As I am a newbie I was wondering if there is any kind of general validitation for different types of full dates. eg. var d1 = Date.par...
Galaxy asked 9/3, 2010 at 10:17

1

I want to have a datepicker where you can also just type basically I want to have the jQuery UI Datepicker and datejs in one. I want to type "tomorrow" and I want it to select the right day. I want...
Liechtenstein asked 27/12, 2008 at 18:10
1

© 2022 - 2024 — McMap. All rights reserved.