You cannot change the collection entry to be time-less, if that is what you are asking.
Nor would you want to, once you understand the JS Date Object.
The collection entry:
“Creates a JavaScript Date instance that represents a single moment in time in a platform-independent format. Date objects use a Unix Time Stamp, an integer value that is the number of milliseconds since 1 January 1970 UTC.”
JS Date Object
JavaScript Date Reference
If you just want the date portion (or any other portions), you use JS methods to obtain those.
Example to output date only:
JavaScript toLocaleDateString() Method
and
Corvid DatePicker
Corvid TimePicker
Hi brainstorrrm and thank you for your message!
Apologies, I am completely new to this and don’t understand the jargon.
To clarify, I would like to remove the time “00:00”. So, the field just displays the date “07/01/2019” - is this not possible?
Welcome to JS, JS Date, Corvid, etc.
You cannot “remove” the time from the date object in the collection/database.
The actual value in the collection is a Unix timestamp.
For example:
7/14/2019 00:00 = 1563062400000
Epoch timestamp: 1563062400
Timestamp in milliseconds: 1563062400000
Date and time (GMT): Sunday, July 14, 2019 12:00:00 AM
Date and time (Your time zone): Saturday, July 13, 2019 7:00:00 PM GMT-05:00
Go here to play with epoch/timestamp:
We see a date and time displayed in that collection because the database software takes the timestamp that is stored in that field (1563062400000) and displays a date and time for our convenience (human readability).
You use JS functions/methods to manipulate and display date objects.
My client doesn’t want the time to appear. Is it possible to display just the time in the content manager collection? If so, how would I go about doing this?
Thanks,