Hello, It is possible to show into a form the date of today? I've tryed using the function tod() but shows me the date of today and a Time, what soul i do?
Hello, It is possible to show into a form the date of today? I've tryed using the function tod() but shows me the date of today and a Time, what soul i do?
You can use the tod() function as you have found, but then you'll want to turn it into a string. Then you can clip with strclpr() if you actually want to remove the time portion of the string. Example...
$test=str(tod())
$junk=strclpr($test,9)
The $test variable now contains the string: 05/06/08
Check out the help server, it documents a lot of the functions available to you.
Hi,
how about:
$date.part=date(tod());
this way the system takes NLS system-wide settings (date format) into account.
I think the point was that he didn't want the time on the end of it... a good suggestion though in terms of standardized format. He'll have to let us know in more detail, or just pick on of the solutions![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks