|
|
convert month text (MAR) to month number (3)
I am trying to work with a data set that unfortunately has spit out all the
dates in a text format - i.e. 03/01/2009 is MAR 3 2009.
Is there a way to convert that text date to an actual date format?
Any advice or suggestions are greatly appreciated.
Thanks
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200912/1
|
|
0
|
|
|
|
Reply
|
HLCruz
|
12/10/2009 7:59:02 PM |
|
Debug.Print CDate("MAR 3 2009") = 3/3/2009
One problem with the CDate function is that it will bomb out on things that
can't be evaluated as a date. Therefore you may want to use the IsDate
function first. Something like this will work in a query. If it can't be
evaluated as a date, it returns a bogus 1/1/1950 date. You could change this
to a more bogus date if that would help find them. Remember to change the
YourDateField to the actual name of your field.
TheDate: IIf(IsDate([YourDateField])=True,Cdate([YourDateField]),#1/1/1950#)
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
"HLCruz via AccessMonster.com" wrote:
> I am trying to work with a data set that unfortunately has spit out all the
> dates in a text format - i.e. 03/01/2009 is MAR 3 2009.
>
> Is there a way to convert that text date to an actual date format?
>
> Any advice or suggestions are greatly appreciated.
>
> Thanks
|
|
0
|
|
|
|
Reply
|
Utf
|
12/10/2009 9:00:01 PM
|
|
|
1 Replies
626 Views
(page loaded in 1.379 seconds)
Similiar Articles: How to convert text "JAN" into number 1? - microsoft ...... on how to convert text "JAN" into number 1 ... symbol into numbers > "JAN" into 1 > .. > "MAR" into 3 > .. ... How can I convert the 3 char month into its number ... Convert Week number into Month - microsoft.public.excel.worksheet ...I have a worksheet with values for year and week number. I need to convert these to the descriptive month ... 0100, "Steve Dunn" <stunn@sky.com> wrote: >=TEXT(MONTH ... Date String to Month Number?? - microsoft.public.access.conversion ...... with three character month names, Jan, Feb, Mar etc. ... Convert Week number into Month ... literal text string: =DateDiff("m", [Field1], Date ... Converting a Month ... Convert date to months - microsoft.public.access.queries ...Convert Number of Month to Number of days - microsoft.public.excel ... Convert ... Select all dates in month from month and year in text box ... Convert linked text field to ... text conversion to number on select query - microsoft.public ...On Mon, 8 Mar 2010 ... all dates in month from month and year in text box ... Convert linked ... to convert linked text field to number ... Convert Text To Number In Ms Query ... convert date field to month/year - microsoft.public.access.queries ...Select all dates in month from month and year in text box ... Convert linked text field to ... Convert Number of Month to Number of days - microsoft.public.excel ... convert ... Group by fiscal months - microsoft.public.access.reports ...... which a fiscal month change ... would not use text months in the > fiscal month query. If you attempt to sort on Jan, Feb, Mar ... I would use a month number like 1, 2, 3 ... Select all dates in month from month and year in text box ...Select all dates in month from month and year in text box ... Convert linked text field to ... ... text conversion to number on select query - microsoft.public ... Convert linked ... changin date dd/mm/yy into Month - microsoft.public.excel ...... is not a date, but text. What happens when you try to format it? Gord Dibben MS Excel MVP On Fri, 5 Mar ... Convert Week number to Month - microsoft.public ... Convert Integer to Date in Access ADP Project - microsoft.public ...Convert Julian to Std Date - microsoft.public.access ... Date' to 3 Seperate Columns 'Month, Day ... I used to have ... Convert text to number ... converting text to number ... convert month text (MAR) to month number (3) DataBaseI am trying to work with a data set that unfortunately has spit out all the dates in a text format - i.e. 03/01/2009 is MAR 3 2009. Is there a way to convert that ... Thread convert month text (MAR) to month number (3) | Microsoft ...I am trying to work with a data set that unfortunately has spit out all the dates in a text format - i.e. 03/01/2009 is MAR 3 2009. Is there a way to convert that ... Convert 3 character month abreviation to equivalent number?text/html 7/3/2008 1:56:41 PM INS_Will 0 ... sql, but is there a way to convert a string value 'jan' to it's equivalent month number ... insert into #tmp values('Mar') ... convert month name to month number in C#: number, name, convertHello experts, I am using a label to get the month name(Jan, Feb, Mar.....) using this line of code. if (month > 12) month = month - 12; lblMonth.Text = String.Format ... Convert month number to text: convert, number, textConvert month number to text. 2007-01-20 01 => "January" (but I wan't ... tell me how to convert a numeric value to month? For instance, convert 1 to Jan, 2 to Feb, 3 to Mar ... 7/23/2012 7:50:34 AM
|
|
|
|
|
|
|
|
|