Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need help with Windows date formats.

Status
Not open for further replies.

shieldshock

Programmer
Jun 28, 2007
1
US
I have datawindows with fields using the [date] tag in the mask. This is good because it displays dates in the correct order (For international purposes). However, I don't want exactly what Windows has in the control panel. I want two digit years instead of the default four.

I've been trying to set thread level settings using external calls to SetLocaleInfo


as well as SetThreadLocale


but I can't seem to get it working.

Help would be greatly appreciated.

-Shields
 
Hi,

use a editmask field with disply-format property set to dd/mm/yy/ or dd.mm.yy or anything propper for the format you want to display the date value. You can see the allowed formats from powerbuilder help. If the data should not be editable, set display only property to true or tab-value to 0(zero) in design window of your datawindow.

Also you could use a computed field where you format the date-value if it is only for displaying purpose
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top