Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DOB date format on the 'new subject' page
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Miklos Espak  
View profile  
 More options Nov 14 2012, 8:15 am
From: Miklos Espak <esp...@gmail.com>
Date: Wed, 14 Nov 2012 13:15:30 +0000
Local: Wed, Nov 14 2012 8:15 am
Subject: DOB date format on the 'new subject' page
Hi,

is there a way to change the date format of the DOB field from the US
style to the local format?

Thank you,
Miklos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jordan Woerndle  
View profile  
 More options Nov 14 2012, 10:35 am
From: Jordan Woerndle <jorda...@gmail.com>
Date: Wed, 14 Nov 2012 09:35:44 -0600
Local: Wed, Nov 14 2012 10:35 am
Subject: Re: [XNAT Discussion] DOB date format on the 'new subject' page

Sadly, it doesn't look like an easy change. I think you'd have to modify
XDAT to handle the new date. It looks like date conversion happens
in org.nrg.xft.utils.DateUtils  so maybe adding new SimpleDateFormats to
the constructor there would do the trick. However, you'd also have to
modify the client side validation that happens in javascript:

 xdat.js:
input.onchange (approx line 552) inside the insertCalendar function does
some validation.
"isValidDate" function (approx line 405 ) does more validation.

SubjectForm.js
the draw function has a large piece of code that creates the date input
box. look aroundl ine 353.

If that doesn't do it, server side validation on dates happens in
XFTValidator.java between lines 1048-1175. It might be a good place to
start looking for issues.

Of course, if you can do this in a generic way, I'm sure we'd love to
include it in base XNAT.

thank you,
Jordan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Herrick, Rick  
View profile  
 More options Nov 14 2012, 10:38 am
From: "Herrick, Rick" <herri...@mir.wustl.edu>
Date: Wed, 14 Nov 2012 15:38:42 +0000
Local: Wed, Nov 14 2012 10:38 am
Subject: RE: [XNAT Discussion] DOB date format on the 'new subject' page

Would LOVE to include it in base XNAT :)

It would be nice to migrate XNAT to use Joda-Time, at which point we'd be in a lot better position to handle different international date formats and, I think, time zone management (which is really a problem with PET data).

Remember, XNAT is an open-source project and anyone with spare time and a desire to get their hands dirty can contribute so... If anyone has spare time...

From: xnat_discussion@googlegroups.com [mailto:xnat_discussion@googlegroups.com] On Behalf Of Jordan Woerndle
Sent: Wednesday, November 14, 2012 9:36 AM
To: xnat_discussion@googlegroups.com
Subject: Re: [XNAT Discussion] DOB date format on the 'new subject' page

Sadly, it doesn't look like an easy change. I think you'd have to modify XDAT to handle the new date. It looks like date conversion happens in org.nrg.xft.utils.DateUtils  so maybe adding new SimpleDateFormats to the constructor there would do the trick. However, you'd also have to modify the client side validation that happens in javascript:

 xdat.js:
input.onchange (approx line 552) inside the insertCalendar function does some validation.
"isValidDate" function (approx line 405 ) does more validation.

SubjectForm.js
the draw function has a large piece of code that creates the date input box. look aroundl ine 353.

If that doesn't do it, server side validation on dates happens in XFTValidator.java between lines 1048-1175. It might be a good place to start looking for issues.

Of course, if you can do this in a generic way, I'm sure we'd love to include it in base XNAT.

thank you,
Jordan

On Wed, Nov 14, 2012 at 7:15 AM, Miklos Espak <esp...@gmail.com<mailto:esp...@gmail.com>> wrote:

Hi,

is there a way to change the date format of the DOB field from the US
style to the local format?

Thank you,
Miklos

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_discussion@googlegroups.com<mailto:xnat_discussion@googlegroups.com>.
To unsubscribe from this group, send email to xnat_discussion+unsubscribe@googlegroups.com<mailto:xnat_discussion%2Bunsub scribe@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_discussion@googlegroups.com<mailto:xnat_discussion@googlegroups.com>.
To unsubscribe from this group, send email to xnat_discussion+unsubscribe@googlegroups.com<mailto:xnat_discussion+unsubsc ribe@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.

________________________________

The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »