Author Topic: Date FORMAT ISSUE  (Read 2498 times)

DDP021

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Date FORMAT ISSUE
« on: November 06, 2013, 04:44:58 AM »
I'm attempting to load a file with the date on the file formatted as 04-NOV-13....I can't find a format that will accept the NOV...I've tried MTH, Mth and B..Anyone know what format to use to accept a 3 character, ALL CAP month format?

ie %d-%B-%d
   %d-%MTH-%d
   %d-%Mth-%d

Row 1:  The string "04-NOV-13" could not be converted to a date from the format of %d-%Mth-%y
Loaded 0 rows into the database

Row 1:  The string "04-NOV-13" could not be converted to a date from the format of %d-%MTH-%y
Loaded 0 rows into the database

Row 1:  The string "04-NOV-13" could not be converted to a date from the format of %d-%B-%y
Loaded 0 rows into the database

kasim

  • Guest
Re: Date FORMAT ISSUE
« Reply #1 on: November 06, 2013, 05:07:56 AM »
try %d-%b-%y

%B is for long style of month e.g. November

u have to add this format in windows registry also.
« Last Edit: November 06, 2013, 07:15:44 AM by kasim »

DDP021

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Date FORMAT ISSUE
« Reply #2 on: November 06, 2013, 08:39:17 AM »
Here is the format that worked....

%e-%b-%y

Not sure what the %d didn't work for the day.....

Frederick Tybalt

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Personal Website
Re: Date FORMAT ISSUE
« Reply #3 on: November 08, 2013, 07:54:13 AM »
%d would have expected 1 instad of 01
rIcK
======------------------======
www.rick.co.in | www.tekbytz.com