Code.

FiscalCode(string, string, DateTime, bool) Method

Summary

Generates an Italian Fiscal Code
Namespace
Faker
Containing Type
Code

Syntax

public static string FiscalCode(string lastName, string firstName, DateTime birthday, bool validChecksum = true)

Remarks

Description of the Fiscal Code standard is at wikipedia

Parameters

Name Type Description
lastName string Last name of the holder
firstName string First name of the holder
birthday DateTime Birthday of the holder
validChecksum bool Indicates whether the generated Fiscal Code has a valid checksum or not

Return Value

Type Description
string The generated Fiscal Code

See Also

GitHub