Click here to Skip to main content
15,886,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
How to load depends upon country datetime format?
how to load datetime format depends upon the country ?


SQL
example 1:
when i am select India ,it will display in textbox : 06/Feb/2014

 india  dd-MM-yyyy


SQL
example 2:
when i am select India ,it will display in textbox : Feb/06/2014

USA  mm/dd/yyyy



XML
<html>
<head><title> date time</title> </head>



<script type ="text/javascript" src="jquery.js"></script>
<script type ="text/javascript" src="jquery.jdpicker.js"></script>

           

<body>
<link rel="stylesheet" href="jdpicker.css" type="text/css" media="screen" />



<div><div class="jdpicker_w"><input id="test1" type="text" name="test"></input>
</body>

<script>



$('#test1').jdPicker({
     date_format:"dd MM YYYY",
});



$(document).ready(function(){
   $('#your_input').jdPicker();
});
$(document).ready(function(){
   $('#your_input').jdPicker({
      start_of_week:2,
      show_week:1
   });
});
Posted
Updated 6-Feb-14 0:49am
v4
Comments
BillWoodruff 6-Feb-14 5:40am    
You might want to move this question to CP's JavaScript forum:

http://www.codeproject.com/Forums/1580226/JavaScript.aspx
pkarthionline 6-Feb-14 6:48am    
thanks

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900