Click here to Skip to main content
15,562,222 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Javascript on dynamic gridview textboxs Pin
Keith Barrow8-Feb-16 3:16
professionalKeith Barrow8-Feb-16 3:16 
QuestionNumber of day week in javascript Pin
Mazdak1-Feb-16 5:34
Mazdak1-Feb-16 5:34 
AnswerRe: Number of day week in javascript Pin
Keith Barrow1-Feb-16 5:56
professionalKeith Barrow1-Feb-16 5:56 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 6:03
Mazdak1-Feb-16 6:03 
GeneralRe: Number of day week in javascript Pin
Keith Barrow1-Feb-16 6:10
professionalKeith Barrow1-Feb-16 6:10 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 6:12
Mazdak1-Feb-16 6:12 
GeneralRe: Number of day week in javascript Pin
Mazdak1-Feb-16 6:11
Mazdak1-Feb-16 6:11 
Questioncomparing two dates in javascript Pin
Member 1026351927-Jan-16 23:40
Member 1026351927-Jan-16 23:40 
i want to compare dates .

startjourney=moment(moment($('#onDate').val()).format("DD/MM/YYYY")+' '+ $('#starttime').val(),"DD/MM/YYYY h:mm A");//concate date and time am getting 27/01/2016 12:00 AM
newDate=moment(startjourney).add(mapDuration[0],'days').add(mapDuration[2],'hours').add(mapDuration[4],'minutes').format("DD/MM/YYYY hh:mm A");//29/01/2016 10:17 AM

// returnJourneyDate=newDate.split(" ")[0];
//
// endTime=moment(newDate.split(" ")[1]+ ' '+newDate.split(" ")[2],"h:mm A ");
// selectedTime=moment($('#starttime').val(),"h:mm A");
alert(moment($('#returntime').val(),"HH:MM").toDate());
selectedjourney=moment($('#returndate').val()+' '+ moment($('#returntime').val(),"HH:MM")).toDate();//concate date and time as strings
selectedDate=moment(selectedjourney,"DD/MM/YYYY h:mm A").toDate();
var date=new Date(selectedjourney,"DD/MM/YYYY hh:mm tt");
var d=moment( $('#returntime').val(),"HH:MM").toDate();
var h=new Date(selectedDate);
if(selectedjourney.isBefore(newDate))// test selected one is before newDate
bootbox.alert( "Return journey time must be after " + newDate);
QuestionRe: comparing two dates in javascript Pin
Richard MacCutchan28-Jan-16 0:17
mveRichard MacCutchan28-Jan-16 0:17 
AnswerRe: comparing two dates in javascript Pin
Richard Deeming28-Jan-16 2:46
mveRichard Deeming28-Jan-16 2:46 
AnswerRe: comparing two dates in javascript Pin
Beginner Luck31-Jan-16 20:24
professionalBeginner Luck31-Jan-16 20:24 
QuestionConvert div into image in Java Script. Pin
varunPes23-Jan-16 3:11
professionalvarunPes23-Jan-16 3:11 
AnswerRe: Convert div into image in Java Script. Pin
Beginner Luck25-Jan-16 15:24
professionalBeginner Luck25-Jan-16 15:24 
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 4:17
pradeep yajamanam21-Jan-16 4:17 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
F-ES Sitecore21-Jan-16 4:52
professionalF-ES Sitecore21-Jan-16 4:52 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming21-Jan-16 4:57
mveRichard Deeming21-Jan-16 4:57 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Beginner Luck27-Jan-16 15:49
professionalBeginner Luck27-Jan-16 15:49 
GeneralRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard Deeming28-Jan-16 2:07
mveRichard Deeming28-Jan-16 2:07 
QuestionNeed help with script Pin
Member 1227186218-Jan-16 10:27
Member 1227186218-Jan-16 10:27 
AnswerRe: Need help with script Pin
Richard Deeming18-Jan-16 11:45
mveRichard Deeming18-Jan-16 11:45 
QuestionGetting User Name Pin
Member 1226951817-Jan-16 9:20
Member 1226951817-Jan-16 9:20 
AnswerRe: Getting User Name Pin
Wombaticus17-Jan-16 12:25
Wombaticus17-Jan-16 12:25 
GeneralRe: Getting User Name Pin
Member 1226951817-Jan-16 13:50
Member 1226951817-Jan-16 13:50 
GeneralRe: Getting User Name Pin
Wombaticus17-Jan-16 13:55
Wombaticus17-Jan-16 13:55 
GeneralRe: Getting User Name Pin
Member 1226951817-Jan-16 13:58
Member 1226951817-Jan-16 13:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.