Skip to content

Date is not empty/null/undefined if no date was selected #2974

@ZTHawk

Description

@ZTHawk

Prerequisites

  • I have searched for duplicate or closed issues.
  • I have validated my setup against the latest version on StackBlitz.
  • I have read the contributing guidelines.
  • I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.

Describe the issue

When not selecting any date and then using myDateObj.viewDate then I get the current date + time.
I would expect to have null, undefined or empty string. Otherwise I do not know if user has selected something or not.

StackBlitz fork

https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-j9seae1f?file=index.html,index.js

edit: Updated stackblitz project

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Firefox

What version of are you using? You can find this information from the sample StackBlitz.

6.10.4

What your browser's locale? You can find this information from the sample StackBlitz.

en-US

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions