Question

12
Replies
8553
Views
NabenduP Member since 2013 9 posts
Accenture
Posted: 4 years ago
Last activity: 2 years 2 months ago
Closed

I have a requirement where I need to display a Date field in Dropdown mode. However on load of the screen, Month and Day will remain blank but the year should get set as the current year. I have tried to use the Default value with the CurrentDateTime func

I have a requirement where I need to display a Date field in Dropdown mode. However on load of the screen, Month and Day will remain blank but the year should get set as the current year. I have tried to use the Default value with the CurrentDateTime function but it is displaying all i.e. Month Day and Year. I have tried to convert the current date time into BigDecimal and then get it converted to the Year. Used the following: @(Pega-RULES:DateTime).year(@(Pega-RULES:DateTime).dateTimeToBigDecimal(@(Pega-RULES:DateTime).CurrentDateTime(), DateTime, tools)). But not working.

Message was edited by: Marissa Rogers - added category, moved from Mesh Help

  1. Edit posts to add this mod edit message: Note the bold font of the message
***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
User Interface
Moderation Team has archived post
Share this page LinkedIn