So basically I have records from a database, each record has its own unique ID (primary key) and its date(mm:hh mm/dd/yy) I would like to display those records on my app's listview. But having the time(mm:hh) is kind of ugly so i decided to only display the mm/dd/yy on the list, now the question is, when I program the onitemClick, how do I find out which item is being click?? Because I dont have the unique ID and the exact Date displayed on the list anymore.

```
ArrayList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();
        HashMap<String, String> map;

        for (int x = Records.size()-1; x >=0; x--)
        {
            map = new HashMap<String, String>();
            map.put("ID", String.valueOf(Records.get(x).getId()));
            map.put("date", Records.get(x).getDate()); //I am going to change this date to just mm/dd/yy

            aList.add(map);
        }

        sd = new SimpleAdapter(this, aList, R.layout.historyactivityrow,
                new String[]
                { "date" }, new int[]              
                { R.id.date });

        lv.setAdapter(sd);

        lv.setOnItemClickListener(new OnItemClickListener()
        {

            public void onItemClick(AdapterView<?> arg0, View view, int arg2,
                    long arg3)
            {
                TextView tx = (TextView) view.findViewById(R.id.date);
                String s = tx.getText().toString();
                Intent intent = new Intent(HistoryActivity.this, EditRecordActivity.class);          
                intent.putExtra("date", s); //I can't do this anymore because now the EditRecordActivity will not know the exact record to be edited.
                startActivity(intent);

            }
        });

```

Please help.