Issue with Jquery date time picker. [Resolved]

Posted by Programmer123 under jQuery on 11/19/2013 | Points: 10 | Views : 2395 | Status : [Member] | Replies : 3
I am using the Jquery date time picker. The code is as below:-

function getDateTimePicker()
{
$('#datetimepicker').DateTimePickerNew({
format: 'dd-MM-yyyy hh:mm:ss',
language: 'en'
});
}


Now I want to select only date and not the time from this datetime picker.

Can any one help me.




Responses

Posted by: Allemahesh on: 11/21/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
I have worked on this and just change your code as below:-

function getDateTimePicker() {
$('#datetimepicker').DateTimePickerNew({
format: 'dd-MM-yyyy hh:mm:ss',
language: 'en',
pickTime: false
});
}

Happy Coding,
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Programmer123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 11/20/2013 [Member] Starter | Points: 25

Up
0
Down
hi,
refer this link i hope it will help you
http://jqueryui.com/datepicker/

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Programmer123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 11/20/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
check this code
function getDateTimePicker() 

{

$('#datetimepicker').DateTimePickerNew({

format: 'mm/dd/yy',

language: 'en'

});

}

Reference: Check the formats of dates using datetimepicker
http://jqueryui.com/datepicker/#date-formats

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Programmer123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response