Android Day Format

User-to-User discussion about the PhraseExpress macro programming.
Post Reply
mh348
Posts: 13
Joined: 29 Aug 18, 10:30

Android Day Format

Post by mh348 » 20 Feb 20, 17:09

Hi, I use the Android Pro version and can't seem to get the day name to display using the macro.

This works correctly on the PC version, by on Android the output is just "0020", which parameters do I need to change/add?
{#datetime -f dddd}

Peter Stotz
PhraseExpress Expert
Posts: 923
Joined: 27 Feb 08, 15:07

Post by Peter Stotz » 20 Feb 20, 21:03

@mh348
maybe {#daytime -f ddddd} (with 5 d's) will work (I think -f dddd is for weekday)
Is there an Android manual you can look into?
Peter
Windows 10 - PhraseExpress v14.0.177

mh348
Posts: 13
Joined: 29 Aug 18, 10:30

Post by mh348 » 23 Feb 20, 12:17

I've tried but but #daytime doesn't do anything. I've also tried #datetime with 3, 4, 5, 6 d's but that doesn't make any difference.

According to the PE Android manual, these two date Macro's are supported, #datetime, #date but I can't figure out the parameters for the day name.

Any other idea's?

Technical Support
Posts: 2892
Joined: 10 Feb 06, 22:23

Post by Technical Support » 23 Feb 20, 18:04

Code: Select all

{#datetime -f EEEE}
Should do the trick

mh348
Posts: 13
Joined: 29 Aug 18, 10:30

Post by mh348 » 24 Feb 20, 08:01

Technical Support wrote:
23 Feb 20, 18:04

Code: Select all

{#datetime -f EEEE}
Should do the trick
Awesome thanks! Works 100%

mh348
Posts: 13
Joined: 29 Aug 18, 10:30

Post by mh348 » 13 Jul 20, 14:24

Technical Support wrote:
23 Feb 20, 18:04

Code: Select all

{#datetime -f EEEE}
Should do the trick
Hi, Is there a way to get the weekday name in uppercase using the above code?

I basically want to use it to output text as follows:

Code: Select all

#HASHTAG - MONDAY, text
13/07/2020, Monday
I tried the following code but, the day name in the second line is coming out on the 3rd line instead:

Code: Select all

#HASHTAG - {#datetime -f EEEE -s +1D}, text
{#datetime -f dd mmmm yyyy -s +1D}

{#insertclipboard} 

Technical Support
Posts: 2892
Joined: 10 Feb 06, 22:23

Post by Technical Support » 14 Jul 20, 08:44

For uppercase, use

Code: Select all

{#uppercase {#datetime -f EEEE -s +1D}}
We do not know, why you get an additional line. Make sure you do not have any unneeded line breaks in your phrase content.

mh348
Posts: 13
Joined: 29 Aug 18, 10:30

Post by mh348 » 14 Jul 20, 11:54

Technical Support wrote:
14 Jul 20, 08:44
For uppercase, use

Code: Select all

{#uppercase {#datetime -f EEEE -s +1D}}
We do not know, why you get an additional line. Make sure you do not have any unneeded line breaks in your phrase content.
Thanks for this, but now both day names are changing to uppercase instead of just the first line..

Technical Support
Posts: 2892
Joined: 10 Feb 06, 22:23

Post by Technical Support » 14 Jul 20, 12:59

Make sure you have a closing bracket } for every opening bracket {, in the right order.

Post Reply