.NETGURU
Related Question on DateTime Formatting
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngbeta' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Jamie Bray
In my calendar application I want to format the time to 12:00 PM.

I am using myTime.format("whateverformattype", null)

but it tells me that null is no longer supported and that I should
use System.DBnull .... but when I try that the compiler says that
DBnull is not a part of System? What am I missing?

Thanks,
Jamie
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply to this message...
 
    
atj@kylas.com (Anil John)
Jamie,

Don't have an exact solution to the problem, I had to do some date time
formatting recently and this article helped me a lot:

http://www.aspnextgen.com/tutorials.aspx?tutorialid=39

Anil

On Mon, 07 May 2001 03:11:02 -0500, Jamie Bray wrote:
|
| In my calendar application I want to format the time to 12:00 PM.
|
| I am using myTime.format("whateverformattype", null)
|
| but it tells me that null is no longer supported and that I should
| use System.DBnull .... but when I try that the compiler says that
| DBnull is not a part of System? What am I missing?
|
| Thanks,
| Jamie
| _________________________________________________________________
| Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|
|

--
_______________________________________________________________
Anil John
Click here to reveal e-mail address [PGP Key Available]

Reply to this message...
 
    
Bob Levittan (VIP)
see:

http://www.aspnextgen.com/tutorials.aspx?tutorialid=39

=====================================================

In my calendar application I want to format the time to 12:00 PM.

I am using myTime.format("whateverformattype", null)

but it tells me that null is no longer supported and that I should
use System.DBnull .... but when I try that the compiler says that
DBnull is not a part of System? What am I missing?

Thanks,
Jamie
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

| [aspngbeta] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngbeta.asp = JOIN/QUIT

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply to this message...
 
    
Yannick Smits (VIP)
You're probably mixing up VB and C#.
In VB the code should be:
myTime.Format("whateverformattype", nothing)
In C#:
myTime.Format("whateverformattype", null);

hope that helps.
Yannick Smits

----- Original Message -----
From: "Jamie Bray" <Click here to reveal e-mail address>
To: "aspngbeta" <Click here to reveal e-mail address>
Sent: Monday, May 07, 2001 10:11 AM
Subject: [aspngbeta] Related Question on DateTime Formatting

[Original message clipped]

Reply to this message...
 
 
System.DateTime




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification