DMXzone App Connect Support Product Page
Dynamic URL Link With Data Format
Asked 19 Oct 2019 21:51:46
1
has this question
19 Oct 2019 21:51:46 Steven Milo posted:
Hi,I have a url link that needs a dynamic date in the middle of the url. The problem is the date is formatted '2019-11-10' (YYYY-MM-DD). It needs to be '20191110' (YYYYMMDD). is there a way to achieve this?
thank you
Replies
Replied 21 Oct 2019 06:46:00
21 Oct 2019 06:46:00 Teodor Kuduschiev replied:
You can use the date formatter to format the value as you need.
Replied 21 Oct 2019 16:07:32
21 Oct 2019 16:07:32 Steven Milo replied:
Can you give me an example please? I have tried several. <a href="'www.exapmple.com' + fltArDateTime.formatDate("yyyyMMDD" +'/index.html'">. Also with the formatter is there a way to get the yyyyMMDD together(This is a general question as I need a lot of HH:MMa and am having to make the "a" a separate binding? "HH:MM a" works.
Replied 22 Oct 2019 07:06:11
22 Oct 2019 07:06:11 Teodor Kuduschiev replied:
I don't really understand which part is unclear for you.
If you want to show the date as 2019-01-01 then you format your date like yyyy-MM-DD
If you want to show the date as 20190101 then you format your date like yyyyMMDD
Any other formatting option is using the same logic.
If you want to show the date as 2019-01-01 then you format your date like yyyy-MM-DD
If you want to show the date as 20190101 then you format your date like yyyyMMDD
Any other formatting option is using the same logic.
Replied 22 Oct 2019 15:33:27
22 Oct 2019 15:33:27 Steven Milo replied:
"yyyy/MM/dd" returns "2019/11/07" "yyyyMMdd" returns "yyyyMMdd". "hh:mm a" returns 08:40 pm. "hh:mma" returns 08:mma
Replied 23 Oct 2019 06:35:34
23 Oct 2019 06:35:34 Teodor Kuduschiev replied:
I will check this and will get back to you.
Replied 24 Oct 2019 13:39:21
24 Oct 2019 13:39:21 Steven Milo replied:
any word on this? thanks