User can change date format in ppc?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
In the pocket pc, is it possible to change the date format? The default
one is mm-dd-yy.

Because I am creating a file which stores the current date & time in
mm-dd-yy minutes seconds am/pm format(i mean, now.string() ) and during the
next start up of my program, it compares the current date & time with the
previously stored one.

Otherwise, is there any explicit way in vb.net to change the date and
time available in string format to mm-dd-yy format for comparison of date and
time?

Requesting your valuable suggestions,

Regards,
Hari
 
Hari,

You can do DateTime.Now.ToString ( "dd MMM yyyy HH:mm:ss" ) where you can
jumble around the format string to have the date outputted as you like...
How would you like it to be stored?

Dan.
 
Dear Dan,

Thanks. Now I got it. If the END USER can change the default datetime
settings of pocket pc, it will not affect the output of DateTime.Now.ToString
in .Net. It will be as usual (dd mm yyyy hh:mm:ss).

So I can compare the current datetime with previous datetime, eventhough the
user changes the settings in between.

Thanks a lot.

Regards,
Hari
 
okay then use

DateTime.Now.ToString ( "dd MM yyyy HH:mm:ss" );


NOTE: uppercase "MM" is month while lower case "mm" is minutes. Uppercase
"HH" is for hours in 24 clock while "hh" is for 12 (using am/pm).
 
Thank you...

Dan Bass said:
okay then use

DateTime.Now.ToString ( "dd MM yyyy HH:mm:ss" );


NOTE: uppercase "MM" is month while lower case "mm" is minutes. Uppercase
"HH" is for hours in 24 clock while "hh" is for 12 (using am/pm).
 
Back
Top