function DayOf(Value: DateTime; UTC: Boolean=False): Integer
X := DayOf(Date); // X is 13 (assuming a date of 02/13/2012)