ASP Date Format Issue

Discussion in 'Coding Help' started by ziycon, Jul 9, 2010.

  1. ziycon

    ziycon New Member

    I'm using the below code(ASP Classic - VB Script)but it causes nothing to output to screen, the date is in the format 'dd-mm-yyyy hh-mm-ss' in the database.
    Code:
    Response.Write Format(DateValue(recSet("datetime")),"d mmmm")

     
  2. ziycon

    ziycon New Member

    Got it sorted using the below code.
    Code:
    Response.Write FormatDateTime(recSet("datetime"),1)
     

Share This Page