I am new to Xamarin and I am trying to do A ToDoListApp. And I want to add a time stamp when a make a new task. I found something in Java but I'm working with c# and I would like to know what is the equivalent to String currentDateTimeString = DateFormat.getDateTimeInstance().format(new Date());
尝试这个:
String myDate = DateTime.Now.ToString();
DateTime date = DateTime.Now; // will give the date time for today
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.