Can "Today" Be Set Manually?

190 views
Skip to first unread message

Matthew Kuehn

unread,
Oct 3, 2014, 2:59:24 PM10/3/14
to bootstrap-...@googlegroups.com
I've got a case where I need to set the value of "today" in the datepicker to be a time reported from the server (which is in a different timezone), and not have it default to the client's value of "today".

So if the server says that today is "10/3/2014" and the client would report that today is "10/2/2014", when the user clicks on the datepicker, they should see 10/3 highlighted by default, and not 10/2. Additionally, if they click the "Today" button, the value set should be 10/3 and not 10/2.

I thought maybe using setDate(new Date(serverTime)) would accomplish this, but it doesn't seem to do what I'm expecting.

Any ideas?

Thanks,
Matthew
Reply all
Reply to author
Forward
0 new messages