Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


How to calculate the quarter end date according to the current date in shell script?


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
How to calculate the quarter end date according to the current date in shell script?

Hi,
My question is how to calculate the quarter end date according to the current date in shell script?
# 2  
Hi,

the 4 quarter end dates are the same each year, so you could take the month number and check in which range it lies: 1-3, 4-6, 7-9 or 10-12. Then you know which quarter end date applies..

S.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
UNIX script to replace old date with current date dynamically in multiple files present in a folder
Shankar455
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server $ cat temp.txt RTG*888*TD8*20180201~...... UNIX for Beginners Questions & Answers
1
UNIX for Beginners Questions & Answers
Calculate the current date.
qcmao
Give your an integer (e.g. 0x0076f676) representing the number of minutes elapsed since January 1, 1996. How to calculate the current date which format should be "year-month-day-hour-minutes" ?... Programming
3
Programming
Generate quarter dates with begin date and end date
sol_nov
Hi All, I am trying to generate quarter dates with user giving input as begin date and end date. Example: Input by user: begin_date = "2009-01-01" end_date = 2010-04-30" required output: 2009-01-01 2009-03-31 09Q01 2009-04-01 2009-06-30 09Q02 . . till 2010-01-01 2010-03-31 10Q01 ...... Shell Programming and Scripting
9
Shell Programming and Scripting
Calculate Date from shell script
gubbu
I have a txt file which now has the following output Sat Mar 6 04:00:01 Sat Mar 6 04:02:09 processing 585 Sat Mar 6 17:00:01 Sat Mar 6 17:00:58 processing 109 Sun Mar 7 04:00:01 Sun Mar 7 04:00:51 processing 309 Sun Mar 7 17:00:01 Sun Mar 7 17:00:41 processing 48 I want output as...... Shell Programming and Scripting
1
Shell Programming and Scripting
calculate the date of next satureday of current date.
rinku
I want to calculate the date of next satureday of current date using shell script. Suppose, today is 27-feb-08 I want to get the date of next satureday, which means 01-mar-08, in the formate '' YYMMDD ". I do this in ksh.. Please tell me any type of command which help me out. Thanks in...... Shell Programming and Scripting
3
Shell Programming and Scripting

Featured Tech Videos