How to pass system generated date in the URL parameter? | Community
Skip to main content
Level 2
August 30, 2023
Solved

How to pass system generated date in the URL parameter?

  • August 30, 2023
  • 1 reply
  • 1062 views

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.
Best answer by SatheeskannaK

@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.

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
August 30, 2023

@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