PC Review


Reply
Thread Tools Rate Thread

Date converison

 
 
bnob
Guest
Posts: n/a
 
      23rd Dec 2004
My regional setting is "yy-MM-dd" for the date

But for my application I have to use the format date "dd/MM/yyyy"
I convert the date to dd/MM/yyyy with this code :

m_curSel.ToString("dd/MM/yyyy")

But I have error : "Cast of the string "23-12-2004" in type Date is non
valide"

WHY ?

Another question : it's possible to use date variable independing of
the regional setting of the PocketPC

--
Ceci est une signature automatique de MesNews.
Site : http://www.mesnews.net

 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      23rd Dec 2004
try this:

curSel.ToString("dd/MM/yyyy",System.Globalization.CultureInfo.InvariantCulture

InvariantCulture - it is the answer for your second question.

bnob wrote:
> My regional setting is "yy-MM-dd" for the date
>
> But for my application I have to use the format date "dd/MM/yyyy"
> I convert the date to dd/MM/yyyy with this code :
>
> m_curSel.ToString("dd/MM/yyyy")
>
> But I have error : "Cast of the string "23-12-2004" in type Date is non
> valide"
>
> WHY ?
>
> Another question : it's possible to use date variable independing of the
> regional setting of the PocketPC
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic converison of old PPT-Files Bernhard.Schloss@googlemail.com Microsoft Powerpoint 6 22nd Jun 2010 03:57 PM
Date converison id10t error Microsoft VB .NET 4 7th May 2008 07:31 PM
Converison of 95 to 2003 =?Utf-8?B?amltbXln?= Microsoft Access 5 27th Jan 2007 12:30 AM
MC++ to CLI converison program? Bruce Microsoft VC .NET 5 24th Dec 2006 12:40 PM
Converison from fat to ntsf is not available Matro Temu Windows XP General 4 22nd Oct 2003 02:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 AM.