Expand my Community achievements bar.

SOLVED

How to pass system generated date in the URL parameter?

Avatar

Level 1

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?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@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