Results 1 to 3 of 3

Thread: Problems with parseDate

  1. #1
    New user
    Join Date
    06-23-09.
    Posts
    6

    Default Problems with parseDate

    Hi there,

    I'm trying to use the parseDate function for my event date output - but for some reason if I replace the timestamp var with my event record var, there is no output:
    Code:
    $this->parseDate('l, d.m.Y', $this->timestamp)
    works fine but
    Code:
    $this->parseDate('l, d.m.Y', $this->date)
    doesn't (there is not error).

    Does anyone know how to solve this problem?

    Thanks,

    Flurin

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Problems with parseDate

    Convert date into a timestamp if it isn't one. So find out what kind of content date has. Then lookup in the php manual how to convert that.

  3. #3
    New user
    Join Date
    06-23-09.
    Posts
    6

    Default Re: Problems with parseDate

    Thanks, it works perfectly!

    I used this function:
    Code:
    <?php echo strtoupper($this->parseDate("l, d.m.Y", strtotime($this->date))); ?>

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
  •