Im trying to replace a character : on a system date generated so I can put it as a title. It gives me the format: "ago 29, 2013 7:42:19 p.m.", so I need to change the ":" for " ", with an string replace. But I dont know how to do it. Ill appreciate your help. Heres my code:
public void createPDF()
{
Document doc = new Document();
try {
Date date = new Date();
String dateTime = DateFormat.getDateTimeInstance().format(date);
File sdCard = Environment.getExternalStorageDirectory();
File dir = new File (sdCard.getAbsolutePath() + "/Bitacora");
dir.mkdirs();
File file = new File(dir, "Bitácora "+idetotrocliente.getText().toString()+", "+dateTime+etsitio.getText().toString()+".pdf");
FileOutputStream fOut = new FileOutputStream(file);
}
catch(Exception)
{
}
}