public class MyDateTimeToString {
private DateTime d;
public MyDateTimeToString(DateTime d) {
this.d = d;
}
public override string ToString()
{
string date = d.ToString("MMdd_");
int hour = d.Hour;
int minute = d.Minute;
int second = d.Second;
return date + l[hour] + l[minute] + l[second];
}
private string l = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
}