how change the system short date format as "dd.mm.yyyy"
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
DatePicker control?
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.
mumin16,
Try "d.m.yyyy" as your format string.
hth,
farrier
Control Panel -> Regional and Language Options
or equivalent in your version of Windows.