<script>
var d1 = new Date();
document.write(d1);
var v2 = Date.parse("3/5/2011 12:01:12");
document.write('<br/>');
document.write(v2);
var d2 = new Date(v2);
document.write('<br/>');
document.write(d2);
document.write('<br/>');
document.write(d2.getTime());
var s3 = "2011-3-5 12:01:12";
var arr = s3.split(" ");
var arr1= arr[0].split("-");
var arr2= arr[1].split(":");
var d3 = new Date(arr1[0],--arr1[1],arr1[2],arr2[0],arr2[1],arr2[2]);
document.write('<br/>');
document.write(d3);
var v4 = Date.parse("2011/3/5 12:01:12");
document.write('<br/>');
document.write(v4);
var v5 = Date.parse("2011/03/05 12:01:12");
document.write('<br/>');
document.write(v5);
var s6 = s3.replace(/-/g,"/");
document.write('<br/>');
document.write(s6);
var s7 = s3.replace("-","/");
document.write('<br/>');
document.write(s7);
</script>
DateTime d1 = DateTime.Now;
Response.Write(d1.ToString() + "<br/>" + string.Format("{0:yyyy-MM-dd HH:mm:ss}", d1));