Skip to content

Instantly share code, notes, and snippets.

@jacobmischka
Last active November 14, 2016 18:57
Show Gist options
  • Save jacobmischka/f0ca19b62f0921074446cb3e653206f9 to your computer and use it in GitHub Desktop.
Save jacobmischka/f0ca19b62f0921074446cb3e653206f9 to your computer and use it in GitHub Desktop.
not
if(this.props.event.start.isSame(this.props.event.end, 'day')
|| (this.props.event.allDay && this.props.event.start
.isSame(this.props.event.end.clone().subtract(1, 'day')))){
const dateFormat = 'll';
return this.props.event.start.format(dateFormat);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment