date field and formats

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sonnich

    #1

    date field and formats

    Hi all!

    I have been looign at and wonder...

    what is the easiest way to check a date field and transfer it into:
    dd.mm.yyyy ?

    Eventually I would like to accept dd.mm then yyyy is present year
    (unless month < now, then yyyy++ ).
    The basic thing is to format the date as dd.mm.yyyy - how?

    BR
    Sonnich

  • Erwin Moller

    #2
    Re: date field and formats

    Sonnich wrote:
    Hi all!
    >
    I have been looign at and wonder...
    >
    what is the easiest way to check a date field and transfer it into:
    dd.mm.yyyy ?
    >
    Eventually I would like to accept dd.mm then yyyy is present year
    (unless month < now, then yyyy++ ).
    The basic thing is to format the date as dd.mm.yyyy - how?
    >
    BR
    Sonnich
    Hi,

    Have a look at the date() function at www.php.net.
    It can format in (almost) any way you like.

    Regards,
    Erwin Moller

    Comment

    Working...