# Remove "Years" from a Date Formatted as Age

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/remove-years-from-a-date-formatted-as-age  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

![Screenshot for “Remove "Years" from a Date Formatted as Age”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/2022-10-02-14-54-32.png)

The following CSS is a solution to remove the year's text from a table with a date formatted as an age.

**Step 1**

**Ensure your date field within your table is set to the format of "Age."**

![Screenshot for “Remove "Years" from a Date Formatted as Age”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1664737566299.png)

**Step 2**

**Add the following code to the CSS tab of your page.**

```
.tb-age-year-text {
    display: none;
}
```

![Screenshot for “Remove "Years" from a Date Formatted as Age”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1664737674165.png)

**Original Community Post:**

[Date Calculations - Age of an asset - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/date-calculations-age-of-an-asset/111/16)
