How to pass system generated date in the URL parameter? | Community
Skip to main content
Level 2
Aug 30, 2023 11:00 AM UTC
Solved

How to pass system generated date in the URL parameter?

I have a requirement to pass system generated date in the url in yyyy/mm/dd format. For example
www.xyz.com?dd=2023/08/30

 

I got the date in additional element is the required format using
Year(GetDate()) + '/'+Month(GetDate())+'/'+Day(GetDate()) and passed it into the URL but when I click on the preview generated, in the URL '/' is getting replaced by '%2F'.

www.xyz.com?dd=2023%2F8%2F30

 

How to stop this change and keep it in the original format?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SatheeskannaK
SatheeskannaKAccepted solution
Level 1
Aug 30, 2023 3:36 PM UTC

@navink7 URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

Thanks, Sathees

1 reply

SatheeskannaK
SatheeskannaKAccepted solution
Level 1
Aug 30, 2023 3:36 PM UTC

@navink7 URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

Translate
Thanks, Sathees