LG G3 Receives Oversharpening Fix via Modified Kernel

Nothing is perfect, as they say. No matter how alluring or seemingly perfect, … more

APKTool Updated with Android Lollipop Support

One of the beauties of Android is the level of flexibility we have over our devices. Whether … more

Lollipop Leak for Sprint Galaxy S5, TWRP for Micromax Canvas Magnus – XDA TV

Android 5.0 Lollipop has been leaked for the Sprint … more

Velocity is Like OpenTable on Steroids

We all enjoy a night out with friends or our significant other from time to time. However, there is … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Displaying the last few days

OP kpontkadar

28th May 2014, 03:56 PM   |  #1  
OP Member
Thanks Meter: 64
 
30 posts
Join Date:Joined: Apr 2014
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.
28th May 2014, 05:42 PM   |  #2  
Senior Member
Bornheim
Thanks Meter: 68
 
130 posts
Join Date:Joined: Jan 2014
More
#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: [ View ]
28th May 2014, 07:38 PM   |  #3  
OP Member
Thanks Meter: 64
 
30 posts
Join Date:Joined: Apr 2014
Quote:
Originally Posted by CopKiller76

#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.
28th May 2014, 09:37 PM   |  #4  
Senior Member
Bornheim
Thanks Meter: 68
 
130 posts
Join Date:Joined: Jan 2014
More
If you want it like your example then use
Code:
 #D-1440E#(#D-1440dd#)
Gesendet von meinem GT-I9505 mit Tapatalk
Last edited by CopKiller76; 28th May 2014 at 09:39 PM.
The Following 2 Users Say Thank You to CopKiller76 For This Useful Post: [ View ]
29th May 2014, 08:44 AM   |  #5  
OP Member
Thanks Meter: 64
 
30 posts
Join Date:Joined: Apr 2014
Quote:
Originally Posted by CopKiller76

If you want it like your example then use[/code]

Thanks again, working perfect.
29th May 2014, 08:57 AM   |  #6  
Senior Member
Bornheim
Thanks Meter: 68
 
130 posts
Join Date:Joined: Jan 2014
More
Np

Gesendet von meinem GT-I9505 mit Tapatalk
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes