• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

PHP date in dd.mm.yyyy format

I don't know how I get date in dd.mm.yyyy format. Is it now () or something?
Can you help me? 22.02.2011
0
mattimeikalainen
Asked:
mattimeikalainen
1 Solution
 
Jason_LotitoCommented:
Basically, you use date().

<?php
date('d.m.Y');
?>

Open in new window


http://www.php.net/date
0
 
Lukasz ChmielewskiCommented:
And assign to a variable :P
<?php
   $mydate = date("d.m.Y");
   echo"$mydate";
?>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now