Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. if (datetime[2] == "PM")
  2. {
  3. if (hhmm[0] == "12")
  4. {
  5. hours = 12;
  6. }
  7. else if (hhmm[0] == "1" && hhmm[0] == "2" && hhmm[0] == "3" && hhmm[0] == "4" && hhmm[0] == "5" && hhmm[0] == "6" && hhmm[0] == "7" && hhmm[0] == "8" && hhmm[0] == "9" && hhmm[0] == "10" && hhmm[0] == "11")
  8. {
  9. hours = Convert.ToInt32(hhmm[0]) + 12;
  10. }
  11. }
  12. else if (datetime[2] == "AM")
  13. {
  14. if (hhmm[0] == "12")
  15. {
  16. hours = 0;
  17. }
  18. else if (hhmm[0] == "1" && hhmm[0] == "2" && hhmm[0] == "3" && hhmm[0] == "4" && hhmm[0] == "5" && hhmm[0] == "6" && hhmm[0] == "7" && hhmm[0] == "8" && hhmm[0] == "9" && hhmm[0] == "10" && hhmm[0] == "11")
  19. {
  20. hours = Convert.ToInt32(hhmm[0]);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement