01-03-2012
To Get the day of given date in aix
Hi,
Can any one help to find out the day for the given date in AIX. If we giving date as "YYYYMMDD" it should display its day.
eg:if the input is "20120103", expected output is "tuesday"
Pls help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a date input in MMDDYYYY format..
I have to give the day (whether that DD is sunday/monday...)
Is there any command for it...
Or do I have to write a script for that...
Thanks in Advance
Yeheya (1 Reply)
Discussion started by: yeheyaansari
1 Replies
2. UNIX for Dummies Questions & Answers
Hi, I have been trying just about every unix command to come up with yesterday's date (today's date - 1). I have seen all of the help on this forum, and none of it seems to work for me here. We are using Sun Solaris 9 Unix. I am using this script to create a .txt file with ftp commands that I will... (2 Replies)
Discussion started by: sfedak
2 Replies
3. Shell Programming and Scripting
Hi,
does anybody know how to format `date` command correctly to return the day of the week? Thanks -A
I work in ksh.... (1 Reply)
Discussion started by: aoussenko
1 Replies
4. UNIX for Dummies Questions & Answers
It's easy as pie to get the date minus one day on opensolaris:
date -d "-1 day" +"%Y%m%d"run this command on our crappy Solaris 10 machines however (which I'm guessing doesn't have GNU date running on it) and you get:
date: illegal option -- d
date: illegal option -- 1
date: illegal option --... (5 Replies)
Discussion started by: rich@ardz
5 Replies
5. Shell Programming and Scripting
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)
Discussion started by: apple2685
4 Replies
6. Shell Programming and Scripting
Ok...this is really bumming me out because it seems like it should be simple, but for some reason, I just can't get it...I've also googled and searched these forums, and haven't found exactly what I'm looking for...
I have a date in mm/dd/yyyy format in a variable...I need to extract the... (7 Replies)
Discussion started by: dbiggied
7 Replies
7. Shell Programming and Scripting
Hi All,
I have a file in the following format.I need to pick up 25th field which is a date and convert it into a day and add it as a field in the file.
"AAGENAS,PEARL... (3 Replies)
Discussion started by: nua7
3 Replies
8. AIX
I need to get the next day's date of the user entered date
for example:
Enter date (yyyy/mm/yy):
2013/10/08I need to get the next day's date of the user entered date
Desired Output:
2013/10/09Though there are ways to achieve this is Linux or Unix environment (date command) ,I need to... (1 Reply)
Discussion started by: rpm120
1 Replies
9. Shell Programming and Scripting
Hi Team,
We have a requirement as follows.
If a date 20141220 as parameter to the script, then the script has to return the output as 20141219.
i.e given date - 1.
The requirement is simple. But it should satisfy leap year, the months having 31 and 30 days, the date in which day light... (9 Replies)
Discussion started by: kmanivan82
9 Replies
10. UNIX for Beginners Questions & Answers
I Have text like
XXX_20190908.csv.gz need to replace Only date in this format with current date every day
Thanks! (1 Reply)
Discussion started by: yamasani1991
1 Replies
LEARN ABOUT PHP
dateinterval.createfromdatestring
DATEINTERVAL.CREATEFROMDATESTRING(3) 1 DATEINTERVAL.CREATEFROMDATESTRING(3)
DateInterval::createFromDateString - Sets up a DateInterval from the relative parts of the string
SYNOPSIS
publicstatic DateInterval DateInterval::createFromDateString (string $time)
DESCRIPTION
Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string.
PARAMETERS
o $time
- A date with relative parts. Specifically, the relative formats supported by the parser used for strtotime(3) and DateTime will
be used to construct the DateInterval.
EXAMPLES
Example #1
Parsing valid date intervals
<?php
// Each set of intervals is equal.
$i = new DateInterval('P1D');
$i = DateInterval::createFromDateString('1 day');
$i = new DateInterval('P2W');
$i = DateInterval::createFromDateString('2 weeks');
$i = new DateInterval('P3M');
$i = DateInterval::createFromDateString('3 months');
$i = new DateInterval('P4Y');
$i = DateInterval::createFromDateString('4 years');
$i = new DateInterval('P1Y1D');
$i = DateInterval::createFromDateString('1 year + 1 day');
$i = new DateInterval('P1DT12H');
$i = DateInterval::createFromDateString('1 day + 12 hours');
$i = new DateInterval('PT3600S');
$i = DateInterval::createFromDateString('3600 seconds');
?>
RETURN VALUES
Returns a new DateInterval instance.
PHP Documentation Group DATEINTERVAL.CREATEFROMDATESTRING(3)