My first then statement is executing even though there is no match between the variables.
Hi Am using Unix Ksh
Code:
I have a two date input as
DATE1=02/12/2012
DATE2=30/12/2012
I Need the output as only sunday date
Code:
02/12/2012
09/12/2012
16/12/2012
23/12/2012
30/12/2012
can anyone pls help me..
thanks in advance...
Is this code good for this purpose?
Code:
<?php
$date1 = mktime(0,0,0,01,01,1991);
$date2 = mktime(0,0,0,03,22,2012);
$diff = $date2 - $date1;
$days = $diff / (60*60*24);
echo ($days . "<br />");
?>
Hi!
i want to print ot my data of the last seven days with gnuplot.
in a script i put my gnuplot-script and at the top i generate my date-variable.
While getting time for a particular date i get negative value. what could be the reason for it.My code like this.
I'm trying desperatly to find a bash or ksh routine that allows me to find for example the previous Monday,Tuesday,Wednesday,... preceding today's date. Additonal it has to work on plain vanilla Solaris X and I don't have the GNU date available.
eg: Today = Thursday 2013/01/17 ; Let's say I want to find the last Monday.
How can i make the date command output yesterday's date, current date and the date 4 days ago, in the following format:
Code:
2012-10-03
code:
Code:
date +% ????
Hi,
I am trying to display future date from the current date but unable to do so in UNIX (not in PERL). For eg: if today is March 5 then I want a variable wherein I can store Mar 7 date, but unable to get the future date from the current date.
I have tried many possible ways as mentioned below but all in vain.
Hi Am Using Unix Ksh
I have input
Code:
DATE1=01/11/2012
DATE2=10/12/2012
need output as count of all sundays between these two dates
Code:
for examples Sunday count between DATE1 and DATE2 is
5
Can anyone help me...