Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 07, 2012 04:04 AM by roopeshreddy
Dec 05, 2012 05:23 PM|LINK
I also want this function to be called in asp.net content form load and store the result in hidden field.
I tried calling the script on content page load, but it doesn't work. But when I bind it with OnClientClick event of a button, it successfully stores in asp.net hidden field.
Dec 05, 2012 05:44 PM|LINK
Did you try DateTime.Now ?? Try this out in a variable like
var time = DateTime.Now;
Dec 05, 2012 06:13 PM|LINK
Dec 06, 2012 05:22 AM|LINK
Check this post:
and just change its date order.
Dec 06, 2012 09:08 AM|LINK
Dec 06, 2012 04:39 PM|LINK
In my case it is giving error: "DateTime is undefined".
Dec 07, 2012 04:04 AM|LINK
Check this sample code -
var date = new Date();
var month = date.getMonth();
var temp = date.getFullYear() + "-" + month + "-"+date.getDate() + " " + date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
Hope it helps u...