datetime members

  • Thread starter Thread starter juli
  • Start date Start date
J

juli

Hello dear ppl!
Do someone know how can I assign a AM/PM value to a datetime object?
Is there a member in this class such as day,hour... also for the
am/pm?
10xs a lot!!!
 
You should look at the CTOR of the DateTime Structure. There is an overload
that allow passing hours, minutes,...
You can also play with the Addxxx method if you want

- José
 
AM/PM are shown based on your formatting of the DateTime value to string.
For example, DateTime.Now.ToString ("hh:mm tt") formats current time to
include AM/PM indicator.

Hello dear ppl!
Do someone know how can I assign a AM/PM value to a datetime object?
Is there a member in this class such as day,hour... also for the
am/pm?
10xs a lot!!!
 
Back
Top