Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Reynolds oymtwuzw Wanda




Posted Questions



Wait...

Posted Answers



Answer


The current position of MSC SEASHORE is at West Mediterranean reported 0 min ago by AIS. The vessel is en route to the port of Genova, Italy, sailing at a speed of 18.2 knots and expected to arrive there on May 6, 05:30.


Answer is posted for the following question.

where is msc seashore now?

Answer


HAPPY BIRTHDAY The melody of “ Happy Birthday to You” comes from the song “Good Morning to All,” which has been attributed to American siblings Patty Hill


Answer is posted for the following question.

How to piano happy birthday?

Answer


To use your foam roller for lower back pain, turn your foam roller so it's vertical (in-line with your spine) and slowly roll the roller from


Answer is posted for the following question.

How to foam roll back?

Answer


1
ng g c component-name --skip-tests

Answer is posted for the following question.

How to angular cli no test (Javascript Scripting Language)

Answer


1
php 
2
   public static function getOrderEndDate( $start_date, $orderDaysCode ){
3
        $saturday_off = false;
4
        if( $orderDaysCode == 'meal_monthly_6' ) { $orderDays = 24; }
5
        elseif( $orderDaysCode == 'meal_monthly_5' ) {
6
            $orderDays = 20;
7
            $saturday_off = true;
8
        }elseif( $orderDaysCode == 'meal_weekly' ) {
9
            $orderDays = 5;
10
            $saturday_off = true;
11
        }
12
        else{ $orderDays = 1; }   // Daily Meal
13
        $formatted_date = new DateTime( $start_date );
14
        $date_timestamp = $formatted_date->getTimestamp();
15
        // loop for X days
16
        for( $i = 0; $i < ( $orderDays - 1 ); $i++ ) {
17
            // get what day it is next day
18
            $nextDay = date('w', strtotime('+1day', $date_timestamp) );
19
            // if it's Sunday or Saturday get $i-1
20
            if( $nextDay == 0 || ( $nextDay == 6 && $saturday_off ) ) { $i--; }
21
            // modify timestamp, add 1 day
22
            $date_timestamp = strtotime('+1day', $date_timestamp);
23
        }
24
        $formatted_date->setTimestamp($date_timestamp);
25
        return $formatted_date->format( 'Y-m-d' );
26
    }
27
    $orderEndDate = getOrderEndDate( '2020-06-17',
28
                                    'meal_monthly_6' );
29
?>

Answer is posted for the following question.

How to get date excluding somedays php (PHP Scripting Language)


Wait...