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

Commit

Permalink
feat(Datepicker): Add seconds to format
Browse files Browse the repository at this point in the history
  • Loading branch information
leocaseiro committed Oct 7, 2016
1 parent d0775ad commit 21d4f62
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 @@ -687,7 +687,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 21d4f62

Please sign in to comment.