Click here to Skip to main content
15,913,773 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: So the web is pretty advanced... Pin
Spoon Of Doom1-Nov-17 23:17
Spoon Of Doom1-Nov-17 23:17 
GeneralRe: So the web is pretty advanced... Pin
W Balboos, GHB2-Nov-17 1:25
W Balboos, GHB2-Nov-17 1:25 
GeneralRe: So the web is pretty advanced... Pin
Marc Clifton2-Nov-17 2:43
mvaMarc Clifton2-Nov-17 2:43 
GeneralRe: So the web is pretty advanced... Pin
Sander Rossel2-Nov-17 7:06
professionalSander Rossel2-Nov-17 7:06 
GeneralRe: So the web is pretty advanced... Pin
W Balboos, GHB2-Nov-17 7:27
W Balboos, GHB2-Nov-17 7:27 
GeneralRe: So the web is pretty advanced... Pin
dazinator7-Nov-17 23:29
dazinator7-Nov-17 23:29 
GeneralRe: So the web is pretty advanced... Pin
W Balboos, GHB8-Nov-17 0:36
W Balboos, GHB8-Nov-17 0:36 
GeneralRe: So the web is pretty advanced... Pin
Bruce Patin2-Nov-17 5:15
Bruce Patin2-Nov-17 5:15 
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"); }
GeneralRe: So the web is pretty advanced... Pin
Sander Rossel2-Nov-17 7:07
professionalSander Rossel2-Nov-17 7:07 
GeneralI was sent this, and... Pin
OriginalGriff1-Nov-17 8:43
mveOriginalGriff1-Nov-17 8:43 
GeneralRe: I was sent this, and... Pin
Nathan Minier1-Nov-17 8:59
professionalNathan Minier1-Nov-17 8:59 
GeneralRe: I was sent this, and... Pin
Super Lloyd1-Nov-17 14:46
Super Lloyd1-Nov-17 14:46 
GeneralRe: I was sent this, and... Pin
W Balboos, GHB1-Nov-17 8:59
W Balboos, GHB1-Nov-17 8:59 
GeneralRe: I was sent this, and... Pin
Daniel Pfeffer2-Nov-17 5:43
professionalDaniel Pfeffer2-Nov-17 5:43 
GeneralRe: I was sent this, and... Pin
PIEBALDconsult1-Nov-17 10:54
mvePIEBALDconsult1-Nov-17 10:54 
GeneralRe: I was sent this, and... Pin
Jim_Snyder2-Nov-17 3:12
professionalJim_Snyder2-Nov-17 3:12 
GeneralRe: I was sent this, and... Pin
Daniel Pfeffer2-Nov-17 5:45
professionalDaniel Pfeffer2-Nov-17 5:45 
GeneralThought of the Day Pin
OriginalGriff1-Nov-17 5:57
mveOriginalGriff1-Nov-17 5:57 
GeneralRe: Thought of the Day Pin
TNCaver1-Nov-17 6:00
TNCaver1-Nov-17 6:00 
GeneralRe: Thought of the Day Pin
PIEBALDconsult1-Nov-17 7:33
mvePIEBALDconsult1-Nov-17 7:33 
AnswerRe: Thought of the Day Pin
megaadam1-Nov-17 6:06
professionalmegaadam1-Nov-17 6:06 
GeneralRe: Thought of the Day Pin
Bryian Tan1-Nov-17 6:13
professionalBryian Tan1-Nov-17 6:13 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer1-Nov-17 6:52
professionalDaniel Pfeffer1-Nov-17 6:52 
GeneralRe: Thought of the Day Pin
PIEBALDconsult1-Nov-17 9:34
mvePIEBALDconsult1-Nov-17 9:34 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer1-Nov-17 6:49
professionalDaniel Pfeffer1-Nov-17 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.