Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,734 Members 40,389 Now Online
XDA Developers Android and Mobile Development Forum

Displaying the last few days

Tip us?
 
kpontkadar
Old
#1  
Member - OP
Thanks Meter 61
Posts: 30
Join Date: Apr 2014
Default Displaying the last few days

Hi All!

Can anybody help me, how can I display the last X day name (and the last X days of month)? For example, the day before yesterday.

I would like to make a calendar, what display one week. Display the last 3 days, today, and the future 3 days.

So today would like to display this:
MON(26) TUE(27) WED(28) THU(29) FRI(30) SAT(31)

Is it possible?

I searched with google and here in the forum, but have not found the answer.

Thanks a lot.
 
CopKiller76
Old
#2  
Senior Member
Thanks Meter 68
Posts: 124
Join Date: Jan 2014
Location: Bornheim
#D-1440dd# for yesterday. 1440 for a hole day in minutes.

Gesendet von meinem GT-I9505 mit Tapatalk
The Following User Says Thank You to CopKiller76 For This Useful Post: [ Click to Expand ]
 
kpontkadar
Old
#3  
Member - OP
Thanks Meter 61
Posts: 30
Join Date: Apr 2014
Quote:
Originally Posted by CopKiller76 View Post
#D-1440dd# for yesterday. 1440 for a hole day in minutes.
Easier than I thought. A big thank you.

And the day name of the week? I try to #D-1440DEEEE# but it's not working. Display the day name, but put in the day in year number before.
 
CopKiller76
Old
(Last edited by CopKiller76; 28th May 2014 at 08:39 PM.)
#4  
Senior Member
Thanks Meter 68
Posts: 124
Join Date: Jan 2014
Location: Bornheim
If you want it like your example then use
Code:
 #D-1440E#(#D-1440dd#)
Gesendet von meinem GT-I9505 mit Tapatalk
The Following 2 Users Say Thank You to CopKiller76 For This Useful Post: [ Click to Expand ]
 
kpontkadar
Old
#5  
Member - OP
Thanks Meter 61
Posts: 30
Join Date: Apr 2014
Quote:
Originally Posted by CopKiller76 View Post
If you want it like your example then use[/code]
Thanks again, working perfect.
 
CopKiller76
Old
#6  
Senior Member
Thanks Meter 68
Posts: 124
Join Date: Jan 2014
Location: Bornheim
Np

Gesendet von meinem GT-I9505 mit Tapatalk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Google Play Services Updated to Version 6.1

In addition to Android operating system proper, Google is focusing hard on giving the developers … more

CyanogenMod 11 M10 Available for Supported Devices

Summer vacation isover for most students out there, and it’s the time to get back to … more

XDA Forums Added for the First Batch of Android One Devices!

Just yesterday, we talked about the highly anticipated launch of the first batch … more

XDA Xposed Tuesday: DonkeyGuard, Don’t Be a Donkey, Control Your Device – XDA Developer TV

Some applications ask for the world … more