how change the system short date format as "dd.mm.yyyy"

Started by mumin16, April 13, 2009, 08:13:04 AM

Previous topic - Next topic

mumin16

how change the system short date format as "dd.mm.yyyy"

jj2007

If you just need the proper output:

include \masm32\include\masm32rt.inc

.data?
datebuffer db 16 dup(?)

.code
start:
invoke GetDateFormat, 0, 0, 0, chr$("dd'.'MM'.'yyyy"), offset datebuffer, 16
MsgBox 0, offset datebuffer, "Today's date:", MB_OK
exit
end start



mumin16

My DatePicker control format is short in dlgbox. and  it display 01.01.2009 in my pc but it display 1.1.2009 in other pc. how display it like my pc.

farrier

mumin16,

Try "d.m.yyyy" as your format string.

hth,

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

GregL

Control Panel -> Regional and Language Options

or equivalent in your version of Windows.