Hello All
I have a requirement where in I should display the date/time in a seperate field when the user starts typing in a text field.
I have the following code in the change event of text field in which user types:
datetimefield.rawValue=Date();
datetimefield is a Date/Time field with value type 'calculated- Read Only' and display pattern of date{yyyy-mm-dd} time{hh:mm:ss}
Under the binding tab, the data form is set to 'Date and Time'
Now, when start typing in the text field, the date and time is displayed however, not in the format I want.
I am getting output as 'Wed Apr 15 2009 14:18:51 GMT-0400 (Eastern Daylight Time)'
I want the output to be 'Wed Apr 15 2009 14:18' or something similar. I donot want the <SS> and GMT information.
Appreciate any help.