Calendar calculate time for end date

Hi, I'm kinda new to JS here and was wondering how do i manipulate the input datetime in order to add 60 minutes to the start datetime in the calendar map and then set it as the end date? the addminute function does not work and still shows up as "invalid date", but i suspect its because i'm trying to add minutes to an array? Help will be appreciated.

Hi @ivor.yzy

I guess it depends of the format of the interview_date value, can you show it?

BTW, usually something like moment(item.interview_date) should work and if you want to manipulate the time, as suggested in the End placeholder, moment(item.interview_date).add(60, 'minutes') should do the trick.

Hope this help.

yup that seems to work! the format is the postgresql timestamp

1 Like