Unable to format date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ziycon
    Contributor
    • Sep 2008
    • 384

    #1

    Unable to format date

    I'm using the below code 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")
  • ziycon
    Contributor
    • Sep 2008
    • 384

    #2
    Got it working using the below.
    Code:
    Response.Write FormatDateTime(recSet("datetime"),1)

    Comment

    Working...