Results 1 to 3 of 3

Thread: Default date selection

  1. #1
    Join Date
    Feb 2011
    Posts
    4

    Default Default date selection

    Hi,
    I want to set default time to 11.59pm for a selected date. Currently it is set to 12.00 am for the selected date (which is the default behavior). How can I make it set to 11.59pm by default?
    Here is the date format:
    Code:
        
        @Column(name = "my_date")
        @NotNull
        @Temporal(TemporalType.TIMESTAMP)
        @DateTimeFormat(style = "SS")
        private Date myDate;
    Thanks.

  2. #2
    Join Date
    Jun 2010
    Posts
    440

    Default

    Enable a constructor for the entity.... set the date field as neeses there

    Thx
    Jd

  3. #3
    Join Date
    Jun 2010
    Posts
    440

    Default

    Sorry for the typo... should say "needed" not neeses.

    It might another way using the value annotation @value. I check it in the morning.



    Thx
    jD

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •