Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #22 from leocaseiro/datepicker-format-seconds
Browse files Browse the repository at this point in the history
feat(Datepicker): Add seconds to format
  • Loading branch information
dharmeshpipariya authored Oct 7, 2016
2 parents 60302c2 + 21d4f62 commit e69f6ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,8 @@ export class Md2Datepicker implements AfterContentInit, ControlValueAccessor {
.replace('MM', this._prependZero((date.getMonth() + 1) + ''))
.replace('DD', this._prependZero(date.getDate() + ''))
.replace('HH', this._prependZero(date.getHours() + ''))
.replace('mm', this._prependZero(date.getMinutes() + ''));
.replace('mm', this._prependZero(date.getMinutes() + ''))
.replace('ss', this._prependZero(date.getSeconds() + ''));
}

/**
Expand Down

0 comments on commit e69f6ba

Please sign in to comment.