Skip to content
#

date

Here are 1,192 public repositories matching this topic...

tasasei
tasasei commented Dec 27, 2019

Describe the bug
In IE, when the dayjs object is generated by Date object, the formatted string of milli seconds show '000' always.
Please see this JSFiddle.
(https://jsfiddle.net/7jrdo1bz/)

It seems be correct behavior when dayjs object is generated by unix milliseconds.
(like: dayjs(1575441029123))

Expected behavior
Show correct milli seconds.

Information

  • Day.js Ver
icleolion
icleolion commented Jan 16, 2020

parseISO v2 documentation currently states

The previous parse implementation was renamed to parseISO.

parse v2 documentation currently states

Old parse was renamed to toDate. Now parse is a new function which parses a string using a provided format.

I think considering the sentence is to divert people who have previously been using v1 parse to the correct v2 equivalent, it only

mayordwells
mayordwells commented Apr 27, 2020

I'd like to contribute to the documentation by adding some of the available options which are not currently documented on the site.

An example of that is the minuteIncrement config that I had dive into the documentation to find it myself. I'm sure a few people might have had a need for this but never found it.

Which repo do I need to fork to be able to contribute this to the documentation?

adm271828
adm271828 commented Oct 5, 2019

Hi,

the shift() method is nice and seems to work with localized time with some kind of "natural" semantic. However it leads to some results (related to differences between time points).

>>> t0 = arrow.now().shift(weeks=3)    # The day before the next DST fall transition

>>> t0
<Arrow [2019-10-26T16:33:24.883042+02:00]>

>>> t1 = t0.shift(days=1)

>>> t1
<Arrow [2019-10-27T16
bug
justdan0227
justdan0227 commented Feb 20, 2020

The docs on
https://github.com/malcommac/SwiftDate/wiki/1.-Introduction:-Absolute-Date-and-DateInRegion
says

let dateFormat = "yyyy-MM-dd HH:mm"
let current_default = Date.defaultRegion
// Print date in current local device region
print(now.string(format: .custom(dateFormat))) // 2017-04-09 19:32
// Change the default region
Date.setDefaultRegion(regionNY)
// Print it again; now the

mattdock
mattdock commented Feb 22, 2018

the first screenshot is the dates being handled by iOS 11. The second screenshot is the dates being handles by iOS 10.

First, there is a row where the exact timestamps pulled from parse are printed, then a row showing what happens to the timestamps after .endOfDay is called and then I try to calculate the number of days between the two dates.

`

     if let start = se
IceTrooper
IceTrooper commented Jan 25, 2020

In relation with #308 it's unclear what value should be passed to value prop when using selectRange={true}.
For now, I set value once as date object (when user select first date), then I set as an array of 2 date objects (when user select range). When clearing selection I set null.

Is it a good approach to change the type of the variable used as a value in Calendar component?

liquidscorpio
liquidscorpio commented Dec 30, 2019

While there are some issues/PRs (#243, #284, etc.) relating to wasm, there is no specific section in documentation properly detailing steps to use it with something like wasm-pack.

For now (v0.4.10), the following code fails to compile:

extern crate wasm_bindgen;

use wasm_bindgen::prelude::*;
use chrono::{NaiveDate};

#[wasm_bindgen]
pub struct Request {
    date: NaiveDat
dgreene1
dgreene1 commented Apr 15, 2019

Many people coming to this library were previously using MomentJS and Luxon. And in those libraries, it's very common to utilize moment().startOf("day"). I think it would be great to have some kind of documentation to help those coming from MomentJS or Luxon to quickly be able to utilize the correct API method.

I've done my best to document what I believe the options are in [this StackOverflo

Improve this page

Add a description, image, and links to the date topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the date topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.