Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add month, year in date field #946

Open
lisa-kwok opened this issue Aug 16, 2021 · 0 comments
Open

add month, year in date field #946

lisa-kwok opened this issue Aug 16, 2021 · 0 comments

Comments

@lisa-kwok
Copy link

This feature allows users to specify the date field by adding years instead of specifying number of days in a year. It also helps them to reduce cognitive work to compute the actual number of days in a year and add to the date input.

User query

The first type is to inform the user of the date when a timeframe has passed, e.g. checker on when a user's Seller's Stamp Duty holding period expires. I've attempted to create this but realised that the date logic requires me to manually input the no. of days to add to a user's input date. So for example, if a user says they purchased a house on 1 February 2021 and our logic says the SSD time period ends 1095 days (365 x 3) later, the result will be 30 January 2024. This manual input of days means that the date may not be accurate if a leap year comes by (since the input doesn’t include the extra day). May I know if there's a way to avoid this problem?

The second type of checker we wanted to create was to compare two dates. The context is that if a user obtained their In-Principal Approval letter for change of residency status from ICA after they had purchased a property, they would be subject to different Additional Buyer's Stamp Duty rates. By comparing the two dates, we would be able to inform the user which rate is applicable. May I know if there's currently a way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant