I have a field in my database of type DateTime but i configure it to be just a time like that 10:00 .
Now i wanna to accept the time in the format like that :
10:00 AM or 10:00 PM ..
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.
DateTimein your queryUse syntax like
If (Hours of Datetime > 12)
Then
Hours of Datetime – 12 + “PM”
I agree this is little bir confused but this is the structure you should follow.