hi Martin and all
how can I get today's date or time as expression.
for example:
today is Dec 12
if date is Dec 12 write a file (true)
if date is not equal to Dec 12 notify on Statusbar (false)
give me script for time also(expression)
thanks from record4
today's date as expression
Moderator: Martin
today's date as expression
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
Re: today's date as expression
Use the dateformat.
MMM is for the month, and dd is for the date. For the Date format pattern, look at Automagic documention : Date format pattern
Later use expressionto check it.
True to write file, and false to notif on statbar.
Code: Select all
s = "{getDate(),dateformat,MMM dd}"
Later use expressionto check it.
Code: Select all
s == "Dec 12"
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.