Re: Get date from user
Posted: Wed Nov 09, 2022 11:52 am
Hi all,
Trying to get the long date from user-entered year/month/day, it does not convert to long date.
My code is
Any ideas, please ?
Trying to get the long date from user-entered year/month/day, it does not convert to long date.
My code is
Neither answer gives the long date, nor does 'formatted date'.on mouseup
set the itemDelimiter to "/"
put field "startyr" & "/" into field "fieldannounce2"
set the itemDelimiter to "/"
put field "startmth" & "/" after field "fieldannounce2"
set the itemDelimiter to "/"
put field "startday" after field "fieldannounce2"
set the itemDelimiter to "/"
put fld "fieldannounce2" into tDate
set the itemDelimiter to "/"
convert tDate to DATEITEMS
set the itemDelimiter to "/"
convert tDate to date
answer tDate
convert tdate to long date
answer tDate
put tdate into field "formatted date"
convert field "formatted date" to long date
end mouseup
Any ideas, please ?