Jump to content


Photo

knowing "day" according to a given date


  • Please log in to reply
2 replies to this topic

#1 Isoss

Isoss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 21 June 2006 - 06:15 AM

Hey, just wondering whether PHP has some function that can give you the "week" day like sun, mon, tue ... when a certain date is given like 19-06-2006.

Thanks

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 21 June 2006 - 06:21 AM

You could try:
echo date("D",strtotime("19-06-2006"));


#3 Isoss

Isoss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 23 June 2006 - 10:51 PM

[!--quoteo(post=386297:date=Jun 21 2006, 01:21 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Jun 21 2006, 01:21 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
You could try:
echo date("D",strtotime("19-06-2006"));
[/quote]

Thanks a bunch .. that's what I've been looking for. cuz i couldn't find it in the manual.
Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users