Definition
Calculates an integer value representing day. NinjaScript uses the .NET DateTime structures which can be complicated for novice programmers. If you are familiar with C# you can directly use DateTime structure properties and methods for date and time comparisons otherwise use this method and the ToTime() method.

Integer representation of day is in the following format yyyyMMdd where January 8, 2007 would be 20070108.