Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

LSParseDateTime

$
0
0

I have a Problem with parsing dates.

 

Why does #LSParseDateTime(Now())# produce an error while  #LSIsDate(Now())# answers with 'YES' ? locale is German (Standard)

 

 

My ColdFusion Code:

 

  Now() : #Now()# <br>
  LSIsDate(Now()): #LSIsDate(Now())# <br>
  LSParseDateTime(Now()): #LSParseDateTime(Now())# <br>

 

 

Output:

 

Now() : {ts '2013-05-15 12:56:27'}

LSIsDate(Now()): YES

LSParseDateTime(Now()):   

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

 

 

{ts '2013-05-15 12:56:27'} is an invalid date or time string.


The error occurred in E:\InetPub\wwwroot\tests\OP\emptime.cfm: line 71
69 :       Now() : #Now()# <br> 
70 :       LSIsDate(Now()): #LSIsDate(Now())# <br>
71 :       LSParseDateTime(Now()): #LSParseDateTime(Now())# <br>
72 : 

 

How can this be and how to solve this problem???????


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>