Purpose Convert a date
from format YYYYMMDD to user format
This is often needed after
function calls that return a date in the internal format YYYYMMDD
Solution
GuiXT
// sample value
Set V[dx] "20200430"
// Calculate the difference between the given date and today
Set V[dx2] "&V[dx](7,8).&V[dx](5,6).&V[dx](1,4)"
Set V[diff] "&V[dx2]" - "&V[today_d.m.y]"
// Add the difference to today's date, in user format
Set V[userdate] "&V[today_user]" + "&V[diff]"
// Display the date in a test message
Message "&V[userdate]"