Advertisement

06.02.2008 at 08:54AM PDT, ID: 23450283
[x]
Attachment Details

Convert date and time to yyyyMMdd and 24 hour respective as a DateTime?

Asked by davism in Microsoft Visual Basic.Net, Microsoft Visual C#.Net, Visual Studio .NET 2005

Tags: Microsoft, vb.net, vs 2005, Date and time formatting

Hi,

Is it possible to convert a date (not necessarily the current date) to a yyyyMMdd (i.e. CCYYMMDD) and it not being a String but a DateTime variable type?

Also, is is possible to convert a time (again, not necessarily the current time) to a HH:mm (i.e. 24 hour) and it not being a String but a DateTime variable type as well?

I got both of these working with strings and doing a String.Format but they do not do into a DateTime field. And I am not even seeing anything in the Date method for anything that supports provided input.

Am I just missing something here?

Any assistance would be greatly appreciated! Start Free Trial
[+][-]06.02.2008 at 08:56AM PDT, ID: 21693128

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 09:02AM PDT, ID: 21693177

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 09:22AM PDT, ID: 21693349

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 10:07AM PDT, ID: 21693660

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 10:18AM PDT, ID: 21693738

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 10:30AM PDT, ID: 21693809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 01:51PM PDT, ID: 21695583

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 02:06PM PDT, ID: 21695678

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 02:18PM PDT, ID: 21695758

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 02:37PM PDT, ID: 21695876

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Microsoft Visual C#.Net, Visual Studio .NET 2005
Tags: Microsoft, vb.net, vs 2005, Date and time formatting
Sign Up Now!
Solution Provided By: PaulHews
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628