Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

gson format for Date type property  RSS feed

subash subbu
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

i am facing one issue, i want to format one class object into gson format,

that class contains date type property.

any idea regarding this format.

please if you know respond.

that class is

public class Product {

private String productSerialNo;

private String productName;
private String carePackSerialNo;
private Date carePackStartDate;
private Date carePackEndDate;

-- getters and setters---


i prepared that format like this

now i want to put some dates instead of null.

thanks in advance.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!