php - Finding out the day -
i want find out day of week based on databese date entry.
for example: suppose fetch value database 03-03-1988, want print day monday or tuesday. how can calculate that?
thanxx in advance..
you can in mysql
like
select dayofweek(date) weekday mytable
returns weekday index date (1 = sunday, 2 = monday, …, 7 = saturday).
Comments
Post a Comment