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 ;

61 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!

    Reply
  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!

    Reply
  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.

    Reply
  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.
    Cheers!

    Reply
  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.

    Reply
  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 https://coub.com/stories/962966-scoliosis-surgery scoliosis
    surgery

    Reply

Leave a Comment