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

Current date #32

Open
n1c0z opened this issue Aug 10, 2018 · 0 comments
Open

Current date #32

n1c0z opened this issue Aug 10, 2018 · 0 comments

Comments

@n1c0z
Copy link

n1c0z commented Aug 10, 2018

Personally, I would hardly use the CURRENT_DATE property. Instead, I would rather use CURRENT_TIMESTAMP as it records the time a button has been clicked, or user was logged in etc. Regarding the issue_date this can distinguish if an item was borrowed and returned on the same day. When extracting the timedate from the database, you can also format it by using in your query the date format option for postresql:

to_date(issue_date, 'DD Mon YYYY')

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

No branches or pull requests

2 participants