Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Return empty string when input is empty instead of 'Invalid Date' #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dehamilton
Copy link

I think this should resolve issue #122. Now instead of performing the formatting regardless of 'value' the formatting will only occur if the moment creation is valid. Otherwise it will return an empty string.

@jraeymae
Copy link

+1
@chollier : is it possible to merge this one? I need this one urgently...

@wiiiim
Copy link

wiiiim commented Apr 13, 2016

this allows clearing the date, but I suggest a similar fix in the constructor for when you give an empty initial date/time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants