Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 4 of 4

Thread: Date of Today

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    11

    Question Date of Today

    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?

  2. #2
    Senior Member benvargas's Avatar
    Join Date
    Apr 2005
    Location
    San Diego, CA USA
    Posts
    194

    Default

    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.

  3. #3
    Senior Member mateuszk's Avatar
    Join Date
    Nov 2006
    Posts
    302

    Default

    Hi,

    how about:

    $date.part=date(tod());

    this way the system takes NLS system-wide settings (date format) into account.

  4. #4
    Senior Member benvargas's Avatar
    Join Date
    Apr 2005
    Location
    San Diego, CA USA
    Posts
    194

    Default

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts