NYCBabak . Posted August 27, 2020 Share Posted August 27, 2020 Are you using Autoprompt or putting the fex in a composer HTML page or a Portal page Link to comment Share on other sites More sharing options...
Douglas Lee 2 Posted August 27, 2020 Author Share Posted August 27, 2020 Neither, just a fex that has the following code which will be used in various scenarios. -SET &START_DT = &START_DT.(|FORMAT=YYMD).Select Start Date.QUOTEDSTRING; Is there a way to change what the calendar actually outputs Like, in good ol days of the Calendar Control settings in the HTML Composer Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted August 27, 2020 Share Posted August 27, 2020 Doug I see what you are saying I think the only way is to write some dialog manager code to transform it to the format you need. Link to comment Share on other sites More sharing options...
Douglas Lee 2 Posted August 27, 2020 Author Share Posted August 27, 2020 Thanks Chuck. I was also told that If the fields are correctly and consistently typed in the metadata this manipulation becomes moot. So, its all about Synonyms I hope. Link to comment Share on other sites More sharing options...
Douglas Lee 2 Posted August 27, 2020 Author Share Posted August 27, 2020 We use the following -SET command in a lot in our fexes to prompt the user for a date, and they seem to like the calendar prompt. -SET &START_DT = &START_DT.(|FORMAT=YYMD).Select Start Date.QUOTEDSTRING; However, the problem is the resulting date value is formatted like this: August 26 2020 which is nice for display, but not for screening within the WHERE statements or DM Commands like DATEADD, etc or other dialogue manager friendly for other functions like DATECVT, DATEMOV, etc. Do you know of a way to change the format returned by the calendar, such as the YYMD format Weve discovered defines work to convert it, but we need to convert it in DM and not a fex. Thanks, Doug Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now