Logo GenPRES

BirthDate Module

Creates a birth date from a year, a month and a day, and converts a birth date to and from a date.

Nested modules

Modules Description

Dto

Holds the Dto of a birth date and converts a birth date to and from the Dto. Returns the validation errors for an invalid or future date.

Optics

Holds a getter and setter pair for the year, the month and the day of a birth date.

SetGet

Gets and sets the year, the month and the day of a birth date, with a unit of measure or as plain integers.

Validation

Holds the validators for the year, the month and the day of a birth date and for an age under 120 years.

Functions and values

Function or value Description

create y m d

Full Usage: create y m d

Parameters:
Returns: BirthDate

fromDate dt

Full Usage: fromDate dt

Parameters:
Returns: BirthDate
dt : DateTime
Returns: BirthDate

toDate bd

Full Usage: toDate bd

Parameters:
Returns: DateTime
bd : BirthDate
Returns: DateTime

Type something to start searching.