Home
Tech Tutorials
ASP.NETASP - Convert String to Date
Author: aspdev.org Published: 25th Sep 2005 Visited: 27610 times
ASP makes converting string to date very easy. We re going to use the CDate ASP/VBScript function in our ASP code to convert a string to a date value. ASP CDate function has the following syntax: CDate (Date) ASP CDate function has 1 string argument, which is the string to be converted to date. The CDate function converts any valid date/time string expression to Date variant subtype. Consider the following use of ASP CDate function, to convert sDate string to date: <% sDate = "January...n
Read Article Sponsored Links
Related Articles
• String Handling in Java The String class is defined in the java lang package and hence is implicitly available to all the programs in Java The String class is declared as final which means that it cannot be subclassed It extends the Object class and implements the Serializable Comparable and CharSequence interfaces Java i ...
• Stay Up-to-Date with Update 1 Java Studio Creator Update 1 changes the bundled application server from Sun Java Application Server 8 1 to 8 2 upgrades the bundled database from PointBase to the open source Java Database 2 Derby and includes all previous hot f ...
• SQL basics: String data types Data type implementations vary from database to database but a working knowledge of the SQL specification will always give you a good idea of what s going on This article breaks down the basic rules of deploying string data t ...