I use ASP/Javascript. I pull a date from a recordset field like this.
var theDate = new Date()
theDate = rs.Fields.Item( "date").val ue
Now I want to apply the method toLocaleString( ). There are 2 things I can
think of
1) change my code to
var theDate = new Date()
theDate = rs.Fields.Item( "date").toLocal eString()
But this gives the error that this method is not supported by that object.
2) Add a string variable
var theDate = new Date()
theDate = rs.Fields.Item( "date").val ue
var strDate = theDate.toLocal eString()
Now I get the error message that theDate is null or not an object.
Any ideas?
var theDate = new Date()
theDate = rs.Fields.Item( "date").val ue
Now I want to apply the method toLocaleString( ). There are 2 things I can
think of
1) change my code to
var theDate = new Date()
theDate = rs.Fields.Item( "date").toLocal eString()
But this gives the error that this method is not supported by that object.
2) Add a string variable
var theDate = new Date()
theDate = rs.Fields.Item( "date").val ue
var strDate = theDate.toLocal eString()
Now I get the error message that theDate is null or not an object.
Any ideas?
Comment