parseFormattedDate

This function is similar to gda.global.parseIso8601Date (with first being G_DATE_YEAR, second being G_DATE_MONTH, third being G_DATE_DAY and sep being '-') but allows one to specify the expected date format.

Parameters

gdate glib.date.Date

a pointer to a #GDate structure which will be filled

value string

a string to be parsed

first glib.types.DateDMY

a #GDateDMY specifying which of year, month or day appears first (in the first bytes) in value

second glib.types.DateDMY

a #GDateDMY specifying which of year, month or day appears second (in the first bytes) in value

third glib.types.DateDMY

a #GDateDMY specifying which of year, month or day appears third (in the first bytes) in value

sep char

spcifies the expected separator character bewteen year, month and day (for example '-')

Return Value

Type: bool

true if value has been sucessfuly parsed as a valid date (see glib.date.Date.valid).