codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  jsp date format  Archive Import (dilek) at 05:14 on Friday, June 06, 2003
 

We are working on a project in which we use jsp and oracle as the database server. We insert records which has date field with the format `dd.MM.YYYY` but when we retrieve this information we get it `YYYY-MM-dd Hour:Min:Sec.0` format. When we try to update the records, we get an error message. It`s due to the mismatch of date formats but how can we change this secod format to our format when we retrieve but before we present for update?


  Re: jsp date format  rosred at 10:26 on Friday, September 19, 2003
 

Hi!!

Why dont u try this code in your java-file




public String getFormatDate(Date d_date) {
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
String dateString = dateFormat.format(d_date);
return dateString;
}








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Develop website with 3 tier architecture
•  Re: TaylorMade R11s Fairway Wood
•  Re:
•  What do you mean by ASP.NET MVC Execution Process?
•  Re:
•  Re:
•  one java progarm handle two socket connection
•  How to navigate database page?
•  "Fitting Wedges


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012