|
See http://momentjs.com/docs/ for formatting codes.
Moment is now installed by default with the Angular 2 quickstart.
To use moment with Angular 2, you must do the following:
1. Add the following line to the top of any *.ts file that uses moment:
import * as moment from 'moment';
2. Add the following line to the map object of systemjs.config.js:
'moment': 'node_modules/moment/moment.js',
OR (using a predefined path in systemjs):
'moment': 'npm:moment/moment.js'
Example:
var d: string;
var m = moment(d);
if (m.isValid()) { return m.format("YYYY-MM-DD hh:mm a"); }
|
|
|
|
|
Yeah, I know of Moment.js, great library!
The issue isn't so much with the date as it is with the input element and binding though
|
|
|
|
|
|
...as is our custom.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
England did it quite a lot successfully.
But America didn't. They are more like power behind the throne kind of country, historically...
|
|
|
|
|
Even though I don't play minecraft, it brings a tear of pride in my eyes.
Down with Herring!
Down with Herring!
Down with Herring!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
W∴ Balboos wrote: Down with Herring!
It lox much worse than it tastes.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
What's an "American flag"?
|
|
|
|
|
It is a striped thing that will leave stars in your eyes...
|
|
|
|
|
Only wimps use dynamite. Doesn't Minecraft allow the use of nukes?
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Does a monkey unlock a monastery?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That's nun of your concern.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
|
My French monastery, to be specific!
... such stuff as dreams are made on
|
|
|
|
|
Maybe a religious monkey? That believe the Dead Programming Languages are superior in modern world?
Bryian Tan
|
|
|
|
|
Bryian Tan wrote: Dead Programming Languages
They're not all dead; the deserving among them will one day be resurrected!
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Well, they are. Just look how slim their specs and manuals are.
|
|
|
|
|
Only when used a priori by an Abbot.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
We're talking monks here, so wouldn't that be a posteriori?
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
I'll have to think abbot it, or discuss it in a low vesper and do Vatican to find an answer.
Is a bible just another name for an invoice?
Is a minister what you do to mix a cup of espresso?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
OOK! OOK! OOK! OOK!
OOK! OOK! OOK! OOK! OOK! OOK! OOK!
OOK!
OOK! OOK! OOK!
OOK! OOK! OOK! OOK! OOK!
OOK! OOK! OOK! OOK! OOK! OOK! OOK! OOK! OOK!
OOK! OOK! OOK!
OOK! OOK! OOK! OOK! OOK! OOK! OOK! OOK!
OOK!
veni bibi saltavi
|
|
|
|
|
|
Ding Dang wallah-wallah bing-bang.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
The Librarian won't be happy if you're implying he's a monkey.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
I thought that was for singing Gregorian chants.
|
|
|
|