Re: FormatDateTime

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Miha Markic [MVP C#] (miha)
Date: 04/27/04


Date: Tue, 27 Apr 2004 13:15:16 +0200

Hi Steve,

I suppose drAccount("project_end_date") is a string and not a DateTime.
If it is so, you will have first convert it to DateTime and then you can
format it.

-- 
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"Steve" <anonymous@discussions.microsoft.com> wrote in message
news:14F9A51D-E816-4F0C-8B5B-47E11E0BB4E2@microsoft.com...
> When I try FormatDateTime(drAccount("project_end_date"),
DateFormat.GeneralDate) it fails with an error description of "20030130" to
type 'Date' is not valid.
>
> What am I missing?  Thanks.


Relevant Pages

  • Re: swap 2 rows
    ... "Steve" wrote in message ... >> miha at rthand com ... >>> like to swap ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: DataRow not updating...
    ... > Hi Steve, ... > miha at rthand com ... along with begin edits at the beginning of the ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: date format
    ... miha at rthand com ... "Agnes" wrote in message ... > How can I set the date format into dd-mm-yyyy globally? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Confused about DataRowVersion.Default
    ... I guess posting here is enough. ... miha at rthand com ... "Steve" wrote in message ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Problem storing 0.000 in DataRow
    ... dec1 has 196608, ie. 3 decimals ... data in dataset is stored in native format and not formatted at all ... > miha at rthand com ...
    (microsoft.public.dotnet.general)