NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: bwhisler on April 01, 2010, 02:07:15 AM

Title: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: bwhisler on April 01, 2010, 02:07:15 AM
Using Nettalk 4, Clarion 6.3 ABC.

On a NetWebForm, I have defined a field of type "Date" and the variable in the dictionary is defined as "@D02". In the application as the global template level, I have selected "mm/dd/yyyy" for date format.

However when the form is displayed in the browser, it is showing the date in "dd/mm/yyyy" format even though the comment shows "mm/dd/yyyy".

What can I do to get the date to show the proper way (well at least proper in USA)?
Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: kevin plummer on April 01, 2010, 02:47:57 AM
Try @D02 with no quotes on the Web Server template
Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: bwhisler on April 01, 2010, 02:58:02 AM
Where would that be?

Looking at the NewWebForm, Fields Tab; Property; Property again on the field in question, I don't see anywhere to enter a format. Keep in mind that this is a type "Date" *selected from drop list.

Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: kevin plummer on April 01, 2010, 03:09:48 AM
its on your web server procedure, Netsimple extension, settings Tab, date picture format - so its a global setting
Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: bwhisler on April 01, 2010, 03:18:19 AM
Hum - on my program the "Date Picture Format" on Settings; General tab is a pull down with two options - mm/dd/yyyy and dd/mm/yyyy. I already have selected the mm/dd/yyyy format which is what I want put in the specific case mentioned, it is not using that but the other format.

I'm using Nettalk version 4.47.
Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: Bruce on April 02, 2010, 12:36:04 AM
Hi Barton,

I've tried to duplicate the problem in example #1, with no success.
Can you try it there on your side and see if it makes any difference?

Cheers
Bruce

Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: bwhisler on April 02, 2010, 02:21:02 AM
Yes, I can duplicate using Nettalk example #1.
I have attached a PDF showing screen capture of screen with dates on wrong order and the NetServer setting screen.

Version that I am using is 4.47.


[attachment deleted by admin]
Title: Re: NetWebForm - "Date" field using "dd/mm/yyy" -- supplement to prior!
Post by: bwhisler on April 02, 2010, 02:32:10 AM
Whoops, after posting prior realized that global setting was wrong. I changed it and recompiled all (deleted all *.clw to make sure) but still getting the wrong date sequence shown.

New corrected "Setting" screen capture attached.



[attachment deleted by admin]
Title: Re: NetWebForm - "Date" field using "dd/mm/yyy"
Post by: bwhisler on April 05, 2010, 03:54:18 AM
Bruce, it is now working.

Over the weekend uninstall Nettalk and reinstalled. Erased all object, etc from project folder and then recompiled. It is now working correctly. Strange but the good news is that it is working now - hurray!