Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods > toLocaleString() Method and toString() MethodThese methods return a string representing the date and time of a Date object based on the time zone of the computer running the script. SyntaxdateVar.toLocaleString() ReturnsA string representing the date and time of dateVar based on the time zone of the computer running the script, in the form Day Mon dd hh:mm:ss yyyy. UsageThese methods return a string representing the date and time of a Date object based on the local time zone of the computer running the script. If the code is implemented in eScript, then the code runs on a server. The server may or may not be in the same time zone as the user. If the code is implemented in JavaScript, then the code runs on the user's computer and uses that computer's time zone. ExampleThis example displays the local time from the computer's clock, the UTC time, and the Greenwich mean time. var aDate = new Date(); The following result appears in a message box. Local date is Fri Nov 19 15:45:52 1999 See AlsoClib.asctime() Method |
Siebel eScript Language Reference |