Hi, I am new to unix and I am doing following steps :
1. Ask user to enter date in mm-dd-yyyy format.
2. show the date user entered from step #1 .
3. convert user enter date into YYYY/MM/DD format.
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 abbreviated name of the day of week from that variable...so I start with this:
10/18/2012
and end up with thi
How can I convert any user inputted date into yyyy/mm/dd?
For example, the user may input date in one of the following formats:
20120121
2012-01-21
01/21/2012
01/21/2012
...
But I need to convert any of the date entered by the user into yyyy/mm/dd (2012/01/2012).
How can I convert any user inputted date into yyyy/mm/dd?
For example user can input date in one of the following formats 20120121 , 2012-01-21, 01/21/2012, 01/21/2012 etc.
But I need to convert any of the date entered by user into yyyy/mm/dd (2012/01/2012). How?
This is the script I was using , but it is not working.
echo "Please enter the date: "
read X
a=$X+"%y/%m/%d"
echo $a
My Date format is like as "MM-dd-yyyy hh:mm" its not current date ,I have to send this date
to server but before send it need to change this date to GMT format but when I change by following code:
private String[] DateConvertor(String datevalue)
{
String date_value[] = null;
String strGMTFormat = null;
SimpleDateFormat objFormat,objFormat1;
I need help to display date and time in desired format in Unix/ Linux. My desired format is:
dd/mm/yyyy hh:mm:ss:ms in Unix or Linux. I got close using the following command:
echo $(date +%x_%r)
This returns:
08/20/2012_02:26:14 PM
Any suggestions?
Hi All,
I want to run a script that will search backwards through a text file until it finds a certain string, something like "Date/Time/Eng" and select a string which happens to be a date and save that as a variable.
The line will always be in the following exact format:
Date/Time/Eng.
Hey!
I have just installed the new release of miui, and i have some questions about it. So here it goes =).
On the default clock widget i have problem with date. I set date in the settings to be in this format: dd/mm/yyyy. But in that default clock widget the date is in format: yyyy/dd/mm.
This is something I already encountered in TB2 and solved at some time but I can't remember what the solution was... Messages are listed in the US date format MM/DD/YYYY instead of DD/MM/YYYY. My location and default language are set correctly to EN_AU. I've done some googling today but none of the solutions put forward seem to work.