Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Format attributes for Glide Date fields?

jim pisello
Giga Expert

We're adding a custom date field to the cmdb_ci table. Rather than using the date format set in the system properties, we'd like the date in this field to be expressed as Quarter/Year, as in Q1 2011, Q4 2012, etc. This is obviously a special exception to the standard date format we're using (yyyy-MM-dd). I was hoping to find a format attribute that could be applied to the field's dictionary entry in order to change the input format, while still storing the date in the system default format.

3 REPLIES 3

john_roberts
Mega Guru

There's no attribute that would handle this. If it's for display only the next best option is to create a new field to store the string format you want, then have a business rule calculate the display string whenever the date field changes. If you want to use the field as input you can use a string field and a client script to validate the input value is in the correct format.


Hi John,



Can you please share the script for this.



Thanks,


Kalyan


jim pisello
Giga Expert

Thanks John. I assumed as much but thought I'd check. Appreciate the quick response.