Answers for "datetime from string dd-mmm-yyyy"

1

java date to string yyyy-mm-dd

java.util.Date date = new Date("Sat Dec 01 00:00:00 GMT 2012");
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String format = formatter.format(date);
System.out.println(format);
Posted by: Guest on May-11-2021
-1

DataType.DateTime.ToString("dd-mm-yyyy"))

DateTime dt = DateTime.ParseExact(yourObject.ToString(), "MM/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture);

string s = dt.ToString("dd/M/yyyy", CultureInfo.InvariantCulture);
Posted by: Guest on May-13-2021

Code answers related to "datetime from string dd-mmm-yyyy"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language