473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

datetime members

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!!!
Nov 16 '05 #1
3 1467
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é
"juli" <ji****@gmail.com> a écrit dans le message de news:
1f**************************@posting.google.com...
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!!!

Nov 16 '05 #2
Juli,

See my previous answer on your previous question.

Cor
Nov 16 '05 #3
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.

"juli" <ji****@gmail.com> wrote in message
news:1f**************************@posting.google.c om...
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!!!
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
by: Frank Rizzo | last post by:
Any ideas?
2
by: jason | last post by:
hello all, silly question, but i can't find a thread that answers it. i have stored procedures that have output parameters of the datatypes Money and DateTime. i have the following sample...
7
by: DB | last post by:
Hi All, Is there any way to get remote machine datetime using asp.net application? Help would be appreciative. Thanks n Regards, Deepak
14
by: Bob Day | last post by:
using VS 2003, VB.net... Why is this valid: dim x as datetime = nothing but this is invalid: public sub DoSomething (Optional byval x as datetime = nothing) ....code to do something end...
9
by: Phil B | last post by:
I am having a problem with a datetime from a web services provider The provider is sending the following SOAP response <?xml version="1.0" encoding="utf-8"?> <soap:Envelope...
4
by: luckyabhishek | last post by:
Hi I am using a java webservice in a .NET application. The xml type of a field in this webservice is xsd:datetime. When i call the webservice from the application i get a deserialization error on...
6
by: JFieseler | last post by:
Hi all, in a huge project i have the following problem. I create an object which contains many private members (i know that this is not correct, but it is a single use migration program). The...
3
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am getting an Exception and trying to fix as MS suggest From C# help this comes If I try
7
by: billygotee | last post by:
Hi, Okay this is taking longer to figure out than I thought it would. The integer members of a DateTime (such as DateTime.Minutes, DateTime.Seconds, etc.) can only get the value, not set it. ...
3
by: Yin99 | last post by:
I have the string "8/2/2007 12:00:00 AM" I'd like to get this in DateTime variable so I can manipulate (e.g. use TimeSpan to find difference). However, when I look at the DateTime constructors,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.