Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

date is not show up in correct format from excel with tab-delimited was generated from query

New Here ,
Apr 22, 2013 Apr 22, 2013

Hi,

My code below worked file and save file into txt file.  However, the date is the problem.  I have to open excel file and manulay change the format of the date to make it shows the correct date, other way, it alutomatic shows 00:00:00 when i first open the file.  How can i make the date automatic shows from the file i generated in excel?

<cfset tab = chr(9)>

<cfset Str = "">

<cfloop query="q_report">

<cfset Str = Str & q_report.purchasedNo & tab & q_report.desc & tab & q_report.Del_date & chr(13) & chr(10)>

</cfloop>

<cffile action="write" output="#Str#" file="#variables.file#">

thanks

TOPICS
Getting started
458
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 26, 2013 Apr 26, 2013
LATEST

Have you tried using DateFormat() on the date?

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources