if i have a given date so how can i find in what date sun and sat comming ... ?
i store 0 for sat and 6 for sun in database.
mangel.murti
5
Helps you in some way
Recommended Answers
Jump to PostGet the day from the current date:
$current = date('w'); $nextSat = ($current == 6) ? 7 : 6 - $current; $nextSun = ($current == 6) ? 1 : $nextSat + 1; //a routine for adding days, eg for Sat: $dateSat = date_create(date('Y-m-d')); date_add($dateSat, date_interval_create_from_date_string("$nextSat days")); echo …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.