User Profile

Collapse

Profile Sidebar

Collapse
razmataz
razmataz
Last Activity: Jun 1 '09, 08:23 PM
Joined: Jun 1 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi,

    Try using this :)

    Code:
    <script type="text/javascript">
        function isValidDate(sText) {
            var reDate = /(?:0[1-9]|[12][0-9]|3[01])\/(?:0[1-9]|1[0-2])\/(?:19|20\d{2})/;
            return reDate.test(sText);
        }
        function validate() {
            var oInput1 = document.getElementById("txt1");
            if (isValidDate(oInput1.value)) {
    ...
    See more | Go to post
    Last edited by Dormilich; Jun 1 '09, 11:01 PM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • razmataz
    replied to date format
    Hi,
    Try this

    DateTime n = DateTime.Now;

    Response.Write( n.ToString("MMM ,dd yyy hh:mm tt"));
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...