angular-moment Questions
9
Solved
What is the best way to get client's timezone and convert it to some other timezone when using moment.js and moment-timezone.js
I want to find out what is clients timezone and later convert his da...
Ethe asked 3/11, 2016 at 12:29
3
So, I am using an Angular material datepicker which only helps me select a month and a year.
https://material.angular.io/components/datepicker/overview#watching-the-views-for-changes-on-selected-ye...
Occupant asked 17/4, 2019 at 18:8
5
Solved
I'm using moment.js to change the local date format for my application but getting the following error:
"moment" has no exported member 'default' when importing the library.
Below is my code:
...
Praemunire asked 19/2, 2019 at 12:45
6
Solved
I realize, this question is repeated but previous once does not provide apt answer
moment package was already installed
1.Installed package
npm install moment-timezone --save
Inside node_modul...
Moorfowl asked 30/7, 2016 at 14:9
5
I am using moment v2.22.0 in angular 5, and this is how I have imported it in module -
import * as moment from 'moment';
and using it in component as -
export class ChatComponent {
.
.
.
pu...
Appomattox asked 27/8, 2018 at 10:37
4
Solved
How do i extract the time using moment.js?
"2015-01-16T12:00:00"
It should return "12:00:00 pm".
The string return will be passed to the timepicker control below.
http://jdewit.github.com/boots...
Nashner asked 16/1, 2015 at 7:0
2
Solved
LIVE DEMO
I use the am-time-ago directive to show a relative timestamp:
<span am-time-ago="publishedAt"></span>
By default, it is formatted as "a day ago", "5 days ago", etc.
How c...
Salverform asked 9/4, 2014 at 13:52
2
Solved
I am saving my date like this in my mongo database:
Thu Oct 25 2018 17:30:03 GMT+0300 (EAT)
I would like to use moment.js to have in the front end like 1 hour ago or 3 hours ago. How would I g...
Leifeste asked 27/10, 2018 at 0:28
1
Solved
I've followed the Tour of Heroes tutorial, and I'm now in the process of modifying the project. My project will have a lot of clocks and timers, and my first task is to make a clock that displays t...
Acrylic asked 13/3, 2017 at 4:24
4
I have a ng-repeat that display the following expression
{{date}} // 2-1-2017
When I use angular-moment
{{date | amDateFormat:'DD'}}
I got 1, which I'm expecting 2. how to make moment know ...
Perspicacity asked 30/12, 2016 at 15:33
1
Solved
I'm using Momentjs in several places in an App I'm working on, and it is working fine. However, I am using endOf('week') and it is resulting in Saturdays. What I am expecting is Sundays.
I've been...
Maclay asked 30/6, 2016 at 21:9
2
Solved
http://plnkr.co/edit/5zxXEEz30t51yGhgYWVF?p=preview
I'm using Moment.js and Angular-moment in my app.
For some reason it's converting all my epoch timestamps to the same date from 1970.
<td...
Martymartyn asked 29/1, 2016 at 20:21
1
Solved
Date received from server is in UTC timezone and I need to convert it to a particular timezone, for example : America/New_York .Following is the code for same
<span class="bold" ng-bind="sess....
Multicolored asked 21/10, 2015 at 12:7
1
This is my code
$scope.getWeekDayShort = function(date) {
moment().locale('pt-br');
return moment(date, "D_M_YYYY").format('ddd');
}
it returns name of weekday in english but need portuguese...
Thaliathalidomide asked 23/1, 2015 at 12:46
1
© 2022 - 2024 — McMap. All rights reserved.