Solved

fomat date

Posted on 2004-09-21
3
217 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

18 Experts available now in Live!

Get 1:1 Help Now