DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 21 Aug 2007 12:10:10 +0100,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    dev15
          2    Graham McKechnie
                 3    dev15


DateTime format question   
Hi, I'm using VS2005 CF 1 SP3 targeting PPC03
 i've searched the forums but couldn't find how to do
this format. I want to force the following date/time format

DD/MM/YYYY HH24:MM:SS

How do i create a datetime object with this format.

Many thanks
Date:Tue, 21 Aug 2007 12:10:10 +0100   Author:  

Re: DateTime format question   
Well you are not far off

DateTime.Now.ToString("ddMMyyyy HHmmss");
Add stuff format stuff how you want.


"dev15"  wrote in message 
news:%23ZM3YP%234HHA.3716@TK2MSFTNGP03.phx.gbl...

> Hi, I'm using VS2005 CF 1 SP3 targeting PPC03
> i've searched the forums but couldn't find how to do
> this format. I want to force the following date/time format
>
> DD/MM/YYYY HH24:MM:SS
>
> How do i create a datetime object with this format.
>
> Many thanks
> 
Date:Tue, 21 Aug 2007 21:18:02 +1000   Author:  

Re: DateTime format question   
Thanks Graham, i take it this will remain absolute regardless
of culture.

"Graham McKechnie"  wrote in message 
news:OoAivT%234HHA.2108@TK2MSFTNGP02.phx.gbl...

> Well you are not far off
>
> DateTime.Now.ToString("ddMMyyyy HHmmss");
> Add stuff format stuff how you want.
>
>
> "dev15"  wrote in message 
> news:%23ZM3YP%234HHA.3716@TK2MSFTNGP03.phx.gbl...
>> Hi, I'm using VS2005 CF 1 SP3 targeting PPC03
>> i've searched the forums but couldn't find how to do
>> this format. I want to force the following date/time format
>>
>> DD/MM/YYYY HH24:MM:SS
>>
>> How do i create a datetime object with this format.
>>
>> Many thanks
>>
>
> 
Date:Tue, 21 Aug 2007 12:24:35 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us