Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Day of week from Date 1

Status
Not open for further replies.

TrojanWarBlade

Programmer
Apr 13, 2005
1,783
GB
Guys,

Just a quick question.
If I have a date (e.g. "25/03/2005" (UK format)) then how do I find what day of the week this date relates to?


Trojan.
 
$tmp = explode("/",'21/11/2005');
print date("l", mktime(0,0,0,$tmp[1], $tmp[0], $tmp[2]))
 
Many thanks,
I'll give that a go.
Have a star for your efforts!
:)



Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top