Skip to content
Edit this page

previousMonth Type documentation

TypeScript declaration

import { previousMonth } from '@siemens/element-ng/datepicker';

Returns the last day of the previous month of the given date object.

Returns: A date of the last day of the previous month of the given day.

previousMonth(date: Date): Date

Returns the last day of the previous month of the given date object.

Returns: A date of the last day of the previous month of the given day.

Parameters
  • • The date for which the previous month is returned.

    date : Date


Except where otherwise noted, content on this site is licensed under MIT License.