J
John Kenickney
I use ASP/Javascript. I pull a date from a recordset field like this.
var theDate = new Date()
theDate = rs.Fields.Item("date").value
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").toLocaleString()
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").value
var strDate = theDate.toLocaleString()
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").value
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").toLocaleString()
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").value
var strDate = theDate.toLocaleString()
Now I get the error message that theDate is null or not an object.
Any ideas?