Hi All,

I need construct a java.text.SimpleDateFormat object by hivemind, but failed.

the constructor is:

   public SimpleDateFormat(String pattern)
   {
       this(pattern, Locale.getDefault());
   }

I need to pass a string "yyyy-MM-dd HH:mm:ss" to it.

My configuration  is:

  <service-point id="timestampFormat" interface="java.text.Format">
       <invoke-factory model="singleton">
           <construct class="java.text.SimpleDateFormat">
               <string>yyyy-MM-dd HH:mm:ss</string>
           </construct>
       </invoke-factory>
   </service-point>


Huang Yifu  »ÆÞȸ£



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to