Perhaps a stupid question, but i really dont know the answer 🙁
lets say i have a date object, how can i change its AM date to PM, or vice verca?
Thanks
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.
seems like you can
then you can say, if hours is greater than or equal to 12, then subtract by 12, otherwise, add 12 to it, for example, by