CRUD API: How to get user by date?

I have created a date entity in java : private Date dateFrom. I can add this to the database but I'm unable to get the user by date through postman due to the date format Z that get's added to the end of date after adding to database. How do I remove this part?

@Stateless
@Path("/{versionID}/example/")
public class ExampleAPI {
    @GET
        @Path("/users/dateFrom/{dateFrom}")
        @Produces(MediaType.APPLICATION_JSON)
        public List<User> getUserByDateJoin(@PathParam("dateFrom") Date dateFrom) {
            return manageUserBean.getUserByDateJoin(dateFrom);
        }    

@Stateless
public class ManageUserBean  {
    
    
    
            @TransactionAttribute(TransactionAttributeType.REQUIRED)
            public User addUser(User user)  {
                        
                    
                    entityManager.persist(user);
                    
                
                    entityManager.flush(); // stores the user to the db
            
                    
                    return user;
                    
                    
            }
        
           @PersistenceContext(unitName = "users")
            private EntityManager entityManager;
           
            public List<User> getUserByDateJoin(Date dateFrom) {
                Query q = entityManager.createQuery("SELECT u FROM User u where u.dateFrom= :dateFrom");
                q.setParameter("dateFrom",dateFrom);
                return (List<User>) q.getResultList();
                
            }