[Gambas-user] Return Value of Date() function
Tobias Boege
taboege at ...626...
Fri Sep 25 14:44:50 CEST 2015
On Fri, 25 Sep 2015, emanuele sottocorno wrote:
> As stated in the wiki the Date Function should return a date without its
> time component.
> http://gambaswiki.org/wiki/cat/time
>
> But: Print Date(Now) ---> 25/09/2015 00:00:00
>
> Is it by design?
>
The Date() function returns data of type Date. This datatype is designed to
hold date and time information, so there is no way to return a date in a
Date value without a time component.
You should think of the Date() function as *stripping* the time information
from a Date value, by replacing the time information with zeros.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list