How can i get the Time only in the DateTime?
Example
01/27/12 04:00PM
i want only to display 04:00PM is there a way to get that? 🙂
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure – just specify a custom format string which only includes the information you want. For example, “hh:mmtt” would do what you want here, I believe.