Solved

fomat date

Posted on 2004-09-21
3
208 Views
Last Modified: 2010-04-23
how can I format dates to  return ISO format "yyyy-mm-dd hh:mm:ss" ?

i have a string   sData = '#5/17/2001 9:37:00 AM#'
0
Comment
Question by:testn1
  • 2
3 Comments
 

Author Comment

by:testn1
ID: 12114742
or   sData = '#5/17/2001#'
0
 
LVL 10

Accepted Solution

by:
Clif earned 500 total points
ID: 12114820
Format(sData, "yyyy-MM-dd HH:mm:ss")
0
 
LVL 10

Expert Comment

by:Clif
ID: 12114846
Oops, I missed the sData (which I presume means it's a string):

Format(CDate(sData), "yyyy-MM-dd HH:mm:ss")
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now