Sample code for 30+ languages & platforms
JavaScript

Example: Http.GenTimeStamp method

Demonstrates the GenTimeStamp method.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
var http = new CkHttp();

// Return current date/time in the following format: Day, DD Mon YYYY HH:MM:SS GMT
var timestamp = http.GenTimeStamp();
console.log(timestamp);

// Sample Output:
// Thu, 21 Aug 2025 11:17:31 GMT