tumblr tracker

GetDay

Library Reference ›› DateTime ››
Parent Previous Next

DateTime.GetDay


Namespace: DateTime


Returns the day value from a datetime variable.


retval = DateTime.GetDay(DateTime)


Parameters:

- DateTime; datetime variable or function call returning datetime variable; the datetime value to extract the day from


Returns:

Value betweeb 1 and 31; numeric value.


Example


$val = DateTime.GetDay(DateTime.GetCurrentDateTime());


After execution the $val variable will contain the current day value (1 to 31).