C# 클래스 Kurejito.Payments.CardDate

Represents the month/year date format used to encode payment card start dates and expiry dates.
파일 보기 프로젝트 열기: Kurejito/Kurejito 1 사용 예제들

공개 메소드들

메소드 설명
CardDate ( System.DateTime dateTime ) : System

Initializes a new instance of the CardDate class based on the provided dateTime.

CardDate ( int month, int year ) : System

Construct a new CardDate based on the specified month and year.

Parse ( string dateString ) : CardDate

Converts a string representation of a card expiry date into a valid CardDate instance.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

ToString ( string separator ) : string

Returns a System.String that represents this instance, formatted with the separator.

메소드 상세

CardDate() 공개 메소드

Initializes a new instance of the CardDate class based on the provided dateTime.
public CardDate ( System.DateTime dateTime ) : System
dateTime System.DateTime The date time.
리턴 System

CardDate() 공개 메소드

Construct a new CardDate based on the specified month and year.
public CardDate ( int month, int year ) : System
month int The month, as a number between 1 (January) and 12 (December)
year int The year. Values below are in the current century; values above this threshold are in the previous century.
리턴 System

Parse() 공개 정적인 메소드

Converts a string representation of a card expiry date into a valid CardDate instance.
public static Parse ( string dateString ) : CardDate
dateString string A string containing a date in the format "MMYY" or "MM/YY"
리턴 CardDate

ToString() 공개 메소드

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Returns a System.String that represents this instance, formatted with the separator.
public ToString ( string separator ) : string
separator string The separator.
리턴 string