[Mono-devel-list] System.DateTime.Now.ToString() - format of returned string

Ivan Hawkes blackhawk at ivanhawkes.com
Fri Jul 18 09:55:27 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason King wrote:

| Hello,
|
| I am running SuSe 8.2.  When I call System.DateTime.Now.ToString() the
| string returned is not consistent with the date / time format in the SuSe
| front end.
|
| My question is, why is this so, and how can I configure Mono to return
| today's date in a specified format.
|
| Thanks
| Jase
|
| Regards,
| Jason King
| Profox Systems Ltd
|

This may not be the answer you want...control the date format output
explicitly by using String.Format ()

e.g. String.Format ("dd mmm yyyy", System.DateTime.Now ());

Note, I don't have a compiler handy...but that should be roughly what
you want.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBPxf8Tvr1e7bH1pzBAQIKAw//RM7vG6MJHZ5a2TsYD00iaJXnoGv6RvxQ
DPQurAIEjFhrJtWftxZRxIGGzeyoZJ6VxdxXzgDNJJ393Ang+TYAj60/n5DPXzZD
M7XDGCPFHGZLOpwv3A1LvAGMLfffHmZ7zHjgIUEylBmeFHt788YzZMa3wUqdhyJK
nS2x7A5vQS8nL50S2oqj92k7qjDpiBfnBc+pgDtzeUQOXoGBxhjhd7haDuokTyIX
zHDUCGQsV7qY6iFSSmT7vBzfzBA2LfHh4bgIyaNEScJ8cLehuGHoiHSV5PiIF1Ff
nsfOfXgBg4QWnu6ko32QLlmIXXrgfJwpidsxU59xe9SK9XhJcWNsqADeYbuwMPK4
1snACs6nQ0+GTnh/4pWSzKbq6UgejDXMsEixyxJfdeal7oAzuZHqy3o+FP7irCYC
p90ArlZ+R9pSE2KORiU4zwMTWCrsuLooXYl+35sHWjmOCVdCccVRZVPOWuG2jZTi
C8scKAtk36kg8JSjbtfs5BNc3Kdxg02fEIhPq0TCo61Q1BlweYej+kv1d9+6ErX8
iJFSQQYaW63O9mpd4dwSFb5du+SSPgRjTtPPDROLgjIN+311N6W7fDFoIhZIqnUA
56fYT4HLo6+aw2i8YVNuv/Jtt0JR32JZyImCx/66VQveRD+ZTWRB0giZ+RgnovG3
/RFnJcqps6o=
=Btid
-----END PGP SIGNATURE-----


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________



More information about the Mono-devel-list mailing list