ERROR Error: InvalidPipeArgument: "12-01-2020 – 12-02-2020' to a date' for pipe 'DatePipe'

I am trying to concatenate two dates and assigning to variable but it is throwing an error
ERROR Error: InvalidPipeArgument: ‘Unable to convert β€œ12-01-2020 – 13-02-2020” into a date’ for pipe ‘DatePipe’.where I am going wrong?

            this.startDate = this.datepipe.transform(response.projectStartDate, 'yyyy-MM-dd','es-ES');
            this.endDate = this.datepipe.transform(response.projectEndDate, 'yyyy-MM-dd','es-ES');

            response.gbRFEbean.projectDuration.value = this.startDate + "-" +this.endDate ;

88 thoughts on “ERROR Error: InvalidPipeArgument: "12-01-2020 – 12-02-2020' to a date' for pipe 'DatePipe'”

  1. Heya terrific blog! Does running a blog like this require a massive amount work?
    I’ve virtually no expertise in programming however I was hoping to start my own blog soon. Anyways, if you have any ideas or
    techniques for new blog owners please share. I know this is off subject
    but I simply needed to ask. Many thanks!

  2. Pretty nice post. I just stumbled upon your weblog and wanted to say
    that I’ve truly enjoyed surfing around your blog posts.
    In any case I’ll be subscribing to your feed and I hope you write again soon!

  3. Every weekend i used to pay a quick visit this web site, because i want enjoyment, for the reason that this this web
    site conations truly pleasant funny data too.

  4. I do not even know how I ended up right here, but I believed this put up used to be good.
    I do not recognize who you’re however definitely you’re going to a famous blogger for those who aren’t already.

  5. Excellent post. I used to be checking constantly this
    blog and I’m inspired! Extremely useful information specifically the closing phase πŸ™‚ I
    care for such information a lot. I used to be looking for this certain info for a very lengthy time.
    Thank you and best of luck.

  6. Wonderful blog you have here but I was wondering if you
    knew of any user discussion forums that cover the same topics discussed in this article?
    I’d really love to be a part of group where I can get opinions from other experienced individuals that share the same interest.
    If you have any suggestions, please let me know. Thanks a lot!
    scoliosis surgery scoliosis

  7. After looking over a handful of the blog articles on your website,
    I really appreciate your way of blogging. I book marked it to my bookmark website list and will
    be checking back in the near future. Please check out my web site too
    and tell me your opinion.