Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,915 Members 43,093 Now Online
XDA Developers Android and Mobile Development Forum

Displaying the last few days

Tip us?
 
kpontkadar
Old
#1  
Member - OP
Thanks Meter 59
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 65
Posts: 111
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 59
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 65
Posts: 111
Join Date: Jan 2014
Location: Bornheim
If you want it like your example then use
Code:
Select 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 59
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 65
Posts: 111
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


XDA PORTAL POSTS

Change the Alarm Icon in the Status Bar with Xposed

It’s hard to find a more hated object than your alarm clock. They wake us up nearly … more

Return to Outer Space Outer Space with Ship Up Game

Since the release of Flappy Birds, we’ve had the “fortune” to see … more

Device Review: OnePlus One

Seemingly every day, there are a bunch of new devices being released. Some are budget devices and some are … more

Browse the Internet with the Innovative Atlas Web Browser

For the most part, Chrome, Firefox, and Dolphin Browser have no real rivals among … more