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
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 >
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 >> > >