Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Set a default time or remove the time picker within the date picker

clivebushell
Giga Contributor

Hi,

I wish to either remove all together or default the time in the date picker to 00:00:00 , is this at all possible. At the moment it defaults to the current time.

find_real_file.png

Many thanks

Clive

1 ACCEPTED SOLUTION

christopheriron
Tera Expert

Hi Clive,



I believe the field will need to be set to Date instead of Date/Time in order to remove the time field from the bottom. If that's not possible you can set the time to 00:00:00 automatically by going to the dictionary entry for the field and setting the default value to javascript:new GlideDateTime().date



Kind Regards,



Chris Ironside


View solution in original post

8 REPLIES 8

christopheriron
Tera Expert

Hi Clive,



I believe the field will need to be set to Date instead of Date/Time in order to remove the time field from the bottom. If that's not possible you can set the time to 00:00:00 automatically by going to the dictionary entry for the field and setting the default value to javascript:new GlideDateTime().date



Kind Regards,



Chris Ironside


Hi Chris,



Thanks for the reply



Sadly I don't have the option to select just date, and the script as a default value also does not seem to work



Kind regards



Clive


Hi Clive,



I have added the default value as below and any new record on the itil appointment table is now set to 00:00:00 of the current day as expected. I can't think of any reason that it would not work as it's in built time and date functionality.



find_real_file.png


find_real_file.png



Kind regards


Hi Chris



I got this working now, I was trying to edit old tickets rather than create a new one.



Many thanks for your help



Kind regards



Clive