Questions tagged as 'momentjs'

1
answer

Get rank between two hours given

I am currently working with momentjs and moment-range to show the range between two dates in an array, this is my code: var start = moment("2017-01-03", 'YYYY-MM-DD').format('YYYY-MM-DD'); var end = moment("2017-01-13", 'YYYY-MM-DD').format(...
asked by 07.09.2017 / 00:56
1
answer

Periodical events with Moment.js and Angular.js

Greetings I am making an application in which I have to manage a calendar with events that repeat themselves, but I am having problems when generating the events that repeat on the 31st of each month, since there are months that do not have 3...
asked by 29.11.2016 / 10:33
1
answer

Moment.js Deprecation (Not recognized ISO format

I have a date search engine in dataTables that due to format problems I used the moment.js library and everything worked perfectly, but when I wanted to save those searches in session so that the inputs do not lose the values I started to fa...
asked by 19.09.2016 / 14:06
1
answer

Change the date the bootstrap-material-datetimepicker calendar returns me

Hi, I'm working with the framwork symfony3 and I'm having problems with a date type field that I use datepicker for when I select the date in the calendar, what I get is a string and I really need it to be date type and because of this It gives...
asked by 26.04.2018 / 20:29
2
answers

Range between two hours momenjs (angularjs)

I am trying to find ranges between two given hours, in If what I want is to do the following: I have h1 = 20:00:00 and h2 = 20:30:00 What I want is for the final result to equal this: 20: 00: 00--20: 10: 00--20: 20: 00--20: 30: 00 This...
asked by 05.08.2016 / 05:57
4
answers

Compare dates with momentsjs in angularjs

I have the following code in my controller : $scope.a="26-04-2016"; $scope.c = moment($scope.a,"DD-MM-YYYY").format("DD-MM-YYYY"); $scope.b="20-10-2016"; $scope.d = moment($scope.b,"DD-MM-YYYY").format("DD-MM-YYYY"); if($scope.d <...
asked by 20.10.2016 / 08:32
1
answer

How do I change the language of the "momentjs" plugin?

I have tried in a thousand ways that I have seen in SOEn, but none of them helps me. Here is an example of what I'm trying to do: $( document ).ready(function() { console.log(moment(new Date('2017-03-16')).format('dddd MMMM...
asked by 18.03.2017 / 05:03
1
answer

Get dates that are between a start date and a final date Moment js?

Cordial greeting colleagues, is that I'm using momentjs for handling dates in my application, my problem is that I need to compare a start date and an end date, then fill an array with the dates you are among these, eg if I have a start date and...
asked by 08.09.2018 / 02:19
0
answers

Problem when inserting Time type in Java

I have a duration attribute in Java that is Time type and in the front I use a bootstrap library to select the time which it sends as a string in "12:00:00" format and this I have to convert to time type for java and I'm not able to. I'm tryi...
asked by 10.10.2018 / 14:45
0
answers

difference of two dates with a conditional in angular used moments.js

Hello a question can you combine this with a conditional of a field that is captured from a form, for example that counts the days depending on the two dates to know if more than 30 days have passed? can the conditional be any field or a bool...
asked by 09.10.2018 / 06:23