Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use iView utils/date.js to format time in fieldDatatepicker.js #104

Open
BingBlog opened this issue May 15, 2020 · 0 comments
Open

Use iView utils/date.js to format time in fieldDatatepicker.js #104

BingBlog opened this issue May 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BingBlog
Copy link
Collaborator

    if (this.field.format === 'yyyyMMdd') {
        initdate = new Date(item.split(/(\d{4})(\d{2})(\d{2})/));
    } else {
        initdate = new Date(item.split(/\D+/));
    }
    return date && date.valueOf() === initdate.valueOf() ;
@BingBlog BingBlog added the enhancement New feature or request label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants