By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,594 Members | 3,680 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,594 IT Pros & Developers. It's quick & easy.

Javasscript to get time only from datetime

P: 54
Hello everyone
i want to know how to fetch only date or time from datetime now using javascript
please help
thanks
Jan 31 '08 #1
Share this Question
Share on Google+
4 Replies


10K+
P: 13,264
Hello everyone
i want to know how to fetch only date or time from datetime now using javascript
please help
thanks
Have a look at this page.
Perhaps that's what you are looking for?
Jan 31 '08 #2

acoder
Expert Mod 15k+
P: 16,027
Have a look at this page.
Perhaps that's what you are looking for?
That uses old code e.g. getFullYear should be used instead of getYear. See a more up-to-date reference.
Jan 31 '08 #3

10K+
P: 13,264
That uses old code e.g. getFullYear should be used instead of getYear. See a more up-to-date reference.
Thanks for that.
Jan 31 '08 #4

acoder
Expert Mod 15k+
P: 16,027
Thanks for that.
You're welcome!
Jan 31 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.