# Get DateTime Month

GrammardateTime Month
FlagsNative | Function

Get the month in the current year of a DateTime. (1 is January)

# Arguments

  • datetime — DateTime

Returns — int

native int GetDateTimeMonth(datetime dt);

Category: DateTime

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L2426
GetDateTimeMonth(lp_datetime)