Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_BaseInstanceXF Base Module

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

Like DateOnly(), but will accept a variant that may be Null, a Date or a String.

d as Variant

The variant date/time

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

Set this time of day as a default

Call Template:

Dim v As Variant
v = DateOnlyVar(d)
v = DateOnlyVar(d, DefTime)

See Also:

Example 1:

DateOnly(#1 Jan 1985 2:35pm#)   => #1 Jan 1985 0:00#
DateOnly(Null)                  => Null
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