Function to find the data type of a constant?

Is there a function which can give the data type of a constant? The function "getcontentdetailsbyuuid" doesn't provide that information.

 

Use Case:

I want to build a UI for the business users to manage few constants. The UI should dynamically display the type of field based on the data type of the constant. example: Display date field for a constant with "date" as the data type

  Discussion posts and replies are publicly visible