Set Cookies - specific expiry date and time format
|I need to create a cookie with specific expiration date and time. Can you please give me advice what should be the correct expiry date and time format in this case ?|
document.cookie = "abc=12345; expires=Thu, 15 Aug 2019 12:00:00 GMT; path=/";
Both weekday and month have to be set in shorten format. To create this type of cookie, the whole date has to be correct. The weekday has to match the stated date.