close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Datepicker

Thread began 6/21/2011 10:09 am by ashbrookdsl368077 | Last modified 6/22/2011 9:08 am by Jason Byrnes | 5398 views | 19 replies |

ashbrookdsl368077

Datepicker

I have read most of your treads on the forum after which i did some changes to the from i have created but the format on the screen is not chaging -

I have already change the format to yyyy-mm-dd in the code but still on the screen after addingnthe code on the browser is still remain with the old format mm/dd/yyyy

Pleaase please since years i have been asking question through the tread in this forum never is anybody answering.

Sign in to reply to this post

Jason ByrnesWebAssist

please post a link where i can see the problem.

Sign in to reply to this post

ashbrookdsl368077

Thanks for this prompt answer
mform.php

Please i need the format yyyy-mm-dd

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

javascript is a case sensitive ;anguage.

you have:
Dateformat: 'yyyy-mm-dd',


the correct code is:
dateFormat: 'yy-mm-dd',

Sign in to reply to this post

ashbrookdsl368077

It is still not working, i have tried change the code.

Sign in to reply to this post

ashbrookdsl368077

please check this

Sign in to reply to this post

Jason ByrnesWebAssist

when i view source of your page it is still:
Dateformat: 'yyyy-mm-dd',

not
dateFormat: 'yy-mm-dd',


your change is not being uploaded to the server.

Sign in to reply to this post

ashbrookdsl368077

you can check the link now this is how it looks mform.php
after i change it

Sign in to reply to this post

Jason ByrnesWebAssist

still not changed in the code when i view source.


this is the browser sourccew code I see:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>

<script src="webassist/forms/wa_servervalidation.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link type="text/css" href="webassist/forms/fd_newfromblank_default/Datepicker/css/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<script type="text/javascript" src="webassist/forms/fd_newfromblank_default/Datepicker/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="webassist/forms/fd_newfromblank_default/Datepicker/js/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript">
$(function(){
$('#Dateofbirth').datepicker({
Dateformat: 'yyyy-mm-dd',
changeMonth: true,
changeYear: true,
showAnim: 'show',
onClose: closeDatePicker_Dateofbirth,
minDate: new Date(1930, 1, 1),
maxDate: new Date(2050, 11, 31)
});
});
function closeDatePicker_Dateofbirth() {
var tElm = $('#Dateofbirth');
if (typeof Dateofbirth_Spry != null && typeof Dateofbirth_Spry != "undefined") {
Dateofbirth_Spry.validate();
}
var docElm = document.getElementById("Dateofbirth");
var tBlur = docElm.getAttribute("onblur");
if (!tBlur) tBlur = docElm.getAttribute("onblur");
if (!tBlur) tBlur = docElm.getAttribute("onblur");
if (tBlur) {
tBlur = tBlur.replace(/\bthis\b/g, "docElm");
eval(tBlur);
}
}
</script>
<script type="text/javascript">
$(function(){
$('#Join_Date').datepicker({
Dateformat: 'yyyy-mm-dd',
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Join_Date
});
});
function closeDatePicker_Join_Date() {
var tElm = $('#Join_Date');
if (typeof Join_Date_Spry != null && typeof Join_Date_Spry != "undefined") {
Join_Date_Spry.validate();
}
var docElm = document.getElementById("Join_Date");
var tBlur = docElm.getAttribute("onblur");
if (!tBlur) tBlur = docElm.getAttribute("onblur");
if (!tBlur) tBlur = docElm.getAttribute("onblur");
if (tBlur) {
tBlur = tBlur.replace(/\bthis\b/g, "docElm");
eval(tBlur);
}
}
</script>
<script src="webassist/forms/wa_clientvalidation.js" type="text/javascript"></script>
<link href="webassist/forms/fd_newfromblank_default.css" rel="stylesheet" type="text/css" />

</head>




this is still using:
Dateformat: 'yyyy-mm-dd',

not:
dateFormat: 'yy-mm-dd',


you need to double check that your changes are being uploaded.

Sign in to reply to this post

ashbrookdsl368077

Am so sorry it is another file i was uploaded,

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...