10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please can u help.
I would like to calculate the days between two dates.
Example file1 ( previous date)
file1 - Input file
In file2 I add the actual date using this code.... (9 Replies)
Discussion started by: jiam912
2. UNIX for Advanced & Expert Users
Hi Am using Unix Ksh
I have a two date input as
I Need the output as only sunday date
can anyone pls help me..
thanks in advance... (2 Replies)
Discussion started by: Venkatesh1
3. Shell Programming and Scripting
I extract dates from the log file and need to calculate days between two dates. My dates are in yyyyMmmdd format. Example:
$d1=2011 Oct 21
$d2=2012 Feb 20
I need to calculate the number of days between $d2 and $d1. This is on Solaris.
djanu (4 Replies)
Discussion started by: djanu
4. Shell Programming and Scripting
I have two times in the format of YYMMDD. Does anyone know an easy way in ksh for me to display how many days are between the two dates?
There are 3 days between X & Y
There are 365 days between X & Y
X=101205... (3 Replies)
Discussion started by: oldman2
5. Shell Programming and Scripting
I need one single command to get number of days between
two given dates.datecalc is not working.
i should get the out put as 23
Thanks in advance (4 Replies)
Discussion started by: suryanarayana
6. Shell Programming and Scripting
i need help! can someone help me please?
i try to calculate date under unix (ksh)...AIX operating system.
I have to find the date 200 days from today's date.
then the script should loop 200 times and display on command line every day's date until the current date.
todays date:... (4 Replies)
Discussion started by: pavan_test
7. UNIX for Dummies Questions & Answers
I am familiar with using the 'date' command to get the current date but I have a situation where I need to get the previous day's date as well as the date two days prior. Theoretically I could use 'expr' to compute these values but I need it to work in instances where the previous month's dates... (2 Replies)
Discussion started by: slant-40
8. Shell Programming and Scripting
I would like to find out the number of days between two dates of the format yyyy-mm-dd.
Any help on this is highly appreciated.
Thanks. (6 Replies)
Discussion started by: Data469
9. UNIX for Advanced & Expert Users
I'm looking for a .ksh script/function that will calculate ONLY the number of days between two distinct dates. Further convert the number of days to weeks and display. I need this to be part of another larger script that checks the password expiry on several servers and notifies the... (1 Reply)
Discussion started by: radheymohan
10. Shell Programming and Scripting
How to get the difference between two dates in no of days ??? My date format is like this YYYY/MM/DD. I have to get the no of days between two dates in the given format.
I tried to search the forum but nothing came up similar to my requitement. Your help will be appreciated.
... (1 Reply)
Discussion started by: csaha