Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_BaseInstanceXF Base Module

Public Function DateOnly (
d As Date,
Optional DefTime As Date = #12:00:00 AM#
) As Date

Returns the date part only of a date/time.
Optionally sets a specific time of day (default is midnight)

d as Date

The date/time variable

Optional DefTime as Date = #12:00:00 AM#

Set this time of day as a default

Call Template:

Dim d As Date
d = DateOnly(d)
d = DateOnly(d, DefTime)

See Also:

Example 1:

DateOnly(#1 Jan 1985 2:35pm#)   => #1 Jan 1985 0:00#
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd