Hi All,
How to find a date which is 7 days from the current date as well as how to find a date which is 7 days before this current date.
Urgently i need help.
Thanks in Advance
Regards
Arunava (2 Replies)
Hi,
I am trying to modify a script which accepts date in format dd/mm/yy. I am trying to modify the script so that it retrieves the date that was 15 days earlier from today as start date. Eg.if today is 05/09/2006, the script should retrieve 21/08/2006 as start date. Is there any script/code to... (2 Replies)
How would I go about getting the previous date on the server? I'm out of ideas...I am thinking that I could do it using the date command, but I am unable to find any information on doing it. For example if the current date is April 17th 2008 it would be (20080417) <- (YYYYMMDD). I need the previous... (4 Replies)
hi all,
i am developing a korn shell script. One of the requirement is to generate the date, which is 7 days before the current date, and create a folder with that date.
So for ex: if the time command returns 13 Feb 2009, I should be able to generate 6 Feb 2009, and assign that to a variable. ... (4 Replies)
Hi guys,
I had a scenario...
1. I had to get the previous days date in yyyymmdd format
2. i had to create a file with Date inthe format yyyymmdd.txt format
both are different
thanks guys in advance.. (4 Replies)
Hi,
On any given day, I want to capture the month that has gone by - said otherwise, how do I capture last month?
expr date '+%m' - 1
Above expression is giving error.
Please advise
thanks
---------- Post updated at 09:28 AM ---------- Previous update was at 09:11 AM... (1 Reply)
I have requirment to get last date of previous month and the first date of previous 4th month:
Example:
Current date: 20130320 (yyyymmdd)
Last date of previous month: 20130228 (yyyymmdd)
First date of previous 4th month: 20121101 (yyyymmdd)
In my shell --date, -d, -v switches are not... (3 Replies)
Legends,
i need to get previous day using date command.
Can you please help.
sdosanjh:/home> date +%m%d%y
011514
i tried -d '-1 day' but it is not working (5 Replies)
Hello:
I am bit puzzled with what I could be doing wrong and any help is appreciated.
I have a date in YYYMMDD format and I need to find the previous date. Based on the input on this forum, I have come up with the following. It seems to work for all except the following. Here I am passing date... (3 Replies)
I am not able to fetch first date and last date previous month
date -d -1month +%Y-%m-%d
date -d -1month +%Y-%m-%d
I need two format dd-mm-yyy
previous month 01-03-2016
previous month 31-03-2016
and also only date 1 to 31
Aprriciate your replay (4 Replies)
Discussion started by: jagu
4 Replies
LEARN ABOUT CENTOS
tartdates
tartdates(5) LinuxTaRT Special Dates tartdates(5)NAME
tartdates - Special date configuration for LinuxTaRT
DESCRIPTION
LinuxTaRT uses a configuration file called specialdates to enable the user to display a specific tagline on certain special dates. The name
and location of this file is specified in the LinuxTaRT configuration file ~/.tartrc, but is usually:
~/.tartdates
PARAMETERS
Each line of the special date file consists of a day of the year expressed as a two digit month, a forward-slash (/), a two digit date, a
colon (:) and a line of text.
mm/dd:tagline text
Any line that does not conform to this specification will be treated as a comment. Comments may also be specified by prefixing text with a
# symbol. Using this method, you can place a comment behind a date line.
EXAMPLES
01/01:Happy New Year!!
Will use "Happy New Year!!" as the tagline when the date is January 1st.
12/25:Merry Christmas to all!
Displays "Merry Christmas to all!" as your tagline on Christmas day.
FILES
~/.tartdates
SEE ALSO tart(1)tartrc(5)tart-custom(5)Mark Veinot 1.0.0 tartdates(5)