prg_date_month_number_determine()
Abstract
Gets the month number corresponding to a month name string.
Syntax
prg_date_month_number_determine (month_str)
| Argument | Type | Description |
|---|---|---|
month_str |
const char * |
String representing a month (see Details). |
Return Type
int
Number of the month; -1 if no match is found.
Header
prg_date.h
Details
The valid month strings and corresponding numbers are as follows.
| Month | Number |
|---|---|
| Jan | 0 |
| Feb | 1 |
| Mar | 2 |
| Apr | 3 |
| May | 4 |
| Jun | 5 |
| Jul | 6 |
| Aug | 7 |
| Sep | 8 |
| Oct | 9 |
| Nov | 10 |
| Dec | 11 |