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

[JAN-13] Switch Date to Proper "Date Time" for Sorting as a Number #52

Closed
jarenadams21 opened this issue Jan 18, 2025 · 1 comment · Fixed by #66
Closed

[JAN-13] Switch Date to Proper "Date Time" for Sorting as a Number #52

jarenadams21 opened this issue Jan 18, 2025 · 1 comment · Fixed by #66
Assignees

Comments

@jarenadams21
Copy link
Collaborator

jarenadams21 commented Jan 18, 2025

You can use the string data type to represent a date or a timestamp. One way to do this is by using ISO 8601 strings, as shown in these examples:

2016-02-15

2015-12-21T17:42:34Z

20150311T122706Z

Create a typed interface for dates in this format so our application adheres to this at all times when using time-sensitive features like deadlines or notifications. We should only need the first format, but a specific time would be helpful if a user needs more specific controls within that, just be sure to specify in your pull request if you chose to only do YY-MM-DD vs adding the time as well.

Here is the wiki as well: https://en.wikipedia.org/wiki/ISO_8601

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes.String

@janekamata
Copy link
Contributor

#66

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

Successfully merging a pull request may close this issue.

2 participants