bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Future date


From: Val Krem
Subject: Future date
Date: Sun, 24 Jan 2016 22:30:34 +0000 (UTC)

Hi all,

I am trying to get a variable that combines the next month(Feb) and current  
year (2016) from the current date

So, I used 


temp_date=$(date | awk -F ' ' '{print $2,$6}' | tr  -d ' ')

I got  Jan2016.

but I want  this "Feb2016" next month and current year. How do I do that? 


Well at the end of the year, I will have another problem ( ie., to change it to 
next year)

Any help?

Val


reply via email to

[Prev in Thread] Current Thread [Next in Thread]